Path: blob/master/src/infrastructure/edges/conduit/PhabricatorEdgeObject.php
12241 views
<?php12final class PhabricatorEdgeObject3extends Phobject4implements PhabricatorPolicyInterface {56private $id;7private $src;8private $dst;9private $type;10private $dateCreated;11private $sequence;1213public static function newFromRow(array $row) {14$edge = new self();1516$edge->id = idx($row, 'id');17$edge->src = idx($row, 'src');18$edge->dst = idx($row, 'dst');19$edge->type = idx($row, 'type');20$edge->dateCreated = idx($row, 'dateCreated');21$edge->sequence = idx($row, 'seq');2223return $edge;24}2526public function getID() {27return $this->id;28}2930public function getSourcePHID() {31return $this->src;32}3334public function getEdgeType() {35return $this->type;36}3738public function getDestinationPHID() {39return $this->dst;40}4142public function getPHID() {43return null;44}4546public function getDateCreated() {47return $this->dateCreated;48}4950public function getSequence() {51return $this->sequence;52}535455/* -( PhabricatorPolicyInterface )----------------------------------------- */565758public function getCapabilities() {59return array(60PhabricatorPolicyCapability::CAN_VIEW,61);62}6364public function getPolicy($capability) {65switch ($capability) {66case PhabricatorPolicyCapability::CAN_VIEW:67return PhabricatorPolicies::getMostOpenPolicy();68}69}7071public function hasAutomaticCapability($capability, PhabricatorUser $viewer) {72return false;73}7475}767778