Differential D14068 Diff 34734 src/applications/countdown/phid/PhabricatorCountdownCountdownPHIDType.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/countdown/phid/PhabricatorCountdownCountdownPHIDType.php
| <?php | <?php | ||||
| final class PhabricatorCountdownCountdownPHIDType extends PhabricatorPHIDType { | final class PhabricatorCountdownCountdownPHIDType extends PhabricatorPHIDType { | ||||
| const TYPECONST = 'CDWN'; | const TYPECONST = 'CDWN'; | ||||
| public function getTypeName() { | public function getTypeName() { | ||||
| return pht('Countdown'); | return pht('Countdown'); | ||||
| } | } | ||||
| public function newObject() { | public function newObject() { | ||||
| return new PhabricatorCountdown(); | return new PhabricatorCountdown(); | ||||
| } | } | ||||
| public function getPHIDTypeApplicationClass() { | |||||
| return 'PhabricatorCountdownApplication'; | |||||
| } | |||||
| protected function buildQueryForObjects( | protected function buildQueryForObjects( | ||||
| PhabricatorObjectQuery $query, | PhabricatorObjectQuery $query, | ||||
| array $phids) { | array $phids) { | ||||
| return id(new PhabricatorCountdownQuery()) | return id(new PhabricatorCountdownQuery()) | ||||
| ->withPHIDs($phids); | ->withPHIDs($phids); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 47 Lines • Show Last 20 Lines | |||||