Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/storage/DifferentialRevision.php
| <?php | <?php | ||||
| final class DifferentialRevision extends DifferentialDAO { | final class DifferentialRevision extends DifferentialDAO | ||||
| implements PhabricatorTokenReceiverInterface, PhabricatorPolicyInterface { | |||||
| protected $title; | protected $title; | ||||
| protected $originalTitle; | protected $originalTitle; | ||||
| protected $status; | protected $status; | ||||
| protected $summary; | protected $summary; | ||||
| protected $testPlan; | protected $testPlan; | ||||
| ▲ Show 20 Lines • Show All 294 Lines • ▼ Show 20 Lines | public function getHashes() { | ||||
| return $this->hashes; | return $this->hashes; | ||||
| } | } | ||||
| public function attachHashes(array $hashes) { | public function attachHashes(array $hashes) { | ||||
| $this->hashes = $hashes; | $this->hashes = $hashes; | ||||
| return $this; | return $this; | ||||
| } | } | ||||
| public function getCapabilities() { | |||||
| return array( | |||||
| PhabricatorPolicyCapability::CAN_VIEW, | |||||
| PhabricatorPolicyCapability::CAN_EDIT, | |||||
| ); | |||||
| } | |||||
| public function getPolicy($capability) { | |||||
| return PhabricatorPolicies::POLICY_USER; | |||||
| } | |||||
| public function hasAutomaticCapability($capability, PhabricatorUser $user) { | |||||
| return false; | |||||
| } | |||||
| } | } | ||||