Differential D14068 Diff 34734 src/applications/repository/phid/PhabricatorRepositoryPushEventPHIDType.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/repository/phid/PhabricatorRepositoryPushEventPHIDType.php
| <?php | <?php | ||||
| final class PhabricatorRepositoryPushEventPHIDType extends PhabricatorPHIDType { | final class PhabricatorRepositoryPushEventPHIDType extends PhabricatorPHIDType { | ||||
| const TYPECONST = 'PSHE'; | const TYPECONST = 'PSHE'; | ||||
| public function getTypeName() { | public function getTypeName() { | ||||
| return pht('Push Event'); | return pht('Push Event'); | ||||
| } | } | ||||
| public function newObject() { | public function newObject() { | ||||
| return new PhabricatorRepositoryPushEvent(); | return new PhabricatorRepositoryPushEvent(); | ||||
| } | } | ||||
| public function getPHIDTypeApplicationClass() { | |||||
| return 'PhabricatorDiffusionApplication'; | |||||
| } | |||||
| protected function buildQueryForObjects( | protected function buildQueryForObjects( | ||||
| PhabricatorObjectQuery $query, | PhabricatorObjectQuery $query, | ||||
| array $phids) { | array $phids) { | ||||
| return id(new PhabricatorRepositoryPushEventQuery()) | return id(new PhabricatorRepositoryPushEventQuery()) | ||||
| ->withPHIDs($phids); | ->withPHIDs($phids); | ||||
| } | } | ||||
| Show All 13 Lines | |||||