public function execute() { $query = new PhabricatorEdgeQuery(); $edge_type = PhabricatorEdgeConfig::TYPE_OBJECT_HAS_SUBSCRIBER; $query->withSourcePHIDs($this->objectPHIDs); $query->withEdgeTypes(array($edge_type)); if ($this->subscriberPHIDs) { $query->withDestinationPHIDs($this->subscriberPHIDs); } $edges = $query->execute(); $results = array_fill_keys($this->objectPHIDs, array()); foreach ($edges as $src => $edge_types) { foreach ($edge_types[$edge_type] as $dst => $data) { $results[$src][] = $dst; } } return $results; }