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