Changeset View
Changeset View
Standalone View
Standalone View
src/infrastructure/graph/PhabricatorObjectGraph.php
Show First 20 Lines • Show All 44 Lines • ▼ Show 20 Lines | final public function setSeedPHID($phid) { | ||||
$this->edgeReach[$phid] = array_fill_keys($this->getEdgeTypes(), true); | $this->edgeReach[$phid] = array_fill_keys($this->getEdgeTypes(), true); | ||||
return $this->addNodes( | return $this->addNodes( | ||||
array( | array( | ||||
'<seed>' => array($phid), | '<seed>' => array($phid), | ||||
)); | )); | ||||
} | } | ||||
final public function getSeedPHID() { | |||||
return $this->seedPHID; | |||||
} | |||||
final public function isEmpty() { | final public function isEmpty() { | ||||
return (count($this->getNodes()) <= 2); | return (count($this->getNodes()) <= 2); | ||||
} | } | ||||
final public function isOverLimit() { | final public function isOverLimit() { | ||||
$limit = $this->getLimit(); | $limit = $this->getLimit(); | ||||
if (!$limit) { | if (!$limit) { | ||||
▲ Show 20 Lines • Show All 169 Lines • Show Last 20 Lines |