Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/storage/DifferentialHunk.php
<?php | <?php | ||||
abstract class DifferentialHunk extends DifferentialDAO | abstract class DifferentialHunk | ||||
implements PhabricatorPolicyInterface { | extends DifferentialDAO | ||||
implements | |||||
PhabricatorPolicyInterface, | |||||
PhabricatorDestructibleInterface { | |||||
protected $changesetID; | protected $changesetID; | ||||
protected $oldOffset; | protected $oldOffset; | ||||
protected $oldLen; | protected $oldLen; | ||||
protected $newOffset; | protected $newOffset; | ||||
protected $newLen; | protected $newLen; | ||||
private $changeset; | private $changeset; | ||||
▲ Show 20 Lines • Show All 210 Lines • ▼ Show 20 Lines | /* -( PhabricatorPolicyInterface )----------------------------------------- */ | ||||
public function getPolicy($capability) { | public function getPolicy($capability) { | ||||
return $this->getChangeset()->getPolicy($capability); | return $this->getChangeset()->getPolicy($capability); | ||||
} | } | ||||
public function hasAutomaticCapability($capability, PhabricatorUser $viewer) { | public function hasAutomaticCapability($capability, PhabricatorUser $viewer) { | ||||
return $this->getChangeset()->hasAutomaticCapability($capability, $viewer); | return $this->getChangeset()->hasAutomaticCapability($capability, $viewer); | ||||
} | } | ||||
/* -( PhabricatorDestructibleInterface )----------------------------------- */ | |||||
public function destroyObjectPermanently( | |||||
PhabricatorDestructionEngine $engine) { | |||||
$this->delete(); | |||||
} | |||||
} | } |