Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/storage/DifferentialDiff.php
Show All 33 Lines | final class DifferentialDiff | ||||
protected $description; | protected $description; | ||||
protected $viewPolicy; | protected $viewPolicy; | ||||
private $unsavedChangesets = array(); | private $unsavedChangesets = array(); | ||||
private $changesets = self::ATTACHABLE; | private $changesets = self::ATTACHABLE; | ||||
private $revision = self::ATTACHABLE; | private $revision = self::ATTACHABLE; | ||||
private $properties = array(); | private $properties = array(); | ||||
private $buildable = self::ATTACHABLE; | |||||
protected function getConfiguration() { | protected function getConfiguration() { | ||||
return array( | return array( | ||||
self::CONFIG_AUX_PHID => true, | self::CONFIG_AUX_PHID => true, | ||||
self::CONFIG_COLUMN_SCHEMA => array( | self::CONFIG_COLUMN_SCHEMA => array( | ||||
'revisionID' => 'id?', | 'revisionID' => 'id?', | ||||
'authorPHID' => 'phid?', | 'authorPHID' => 'phid?', | ||||
'repositoryPHID' => 'phid?', | 'repositoryPHID' => 'phid?', | ||||
▲ Show 20 Lines • Show All 268 Lines • ▼ Show 20 Lines | public function attachProperty($key, $value) { | ||||
$this->properties[$key] = $value; | $this->properties[$key] = $value; | ||||
return $this; | return $this; | ||||
} | } | ||||
public function getProperty($key) { | public function getProperty($key) { | ||||
return $this->assertAttachedKey($this->properties, $key); | return $this->assertAttachedKey($this->properties, $key); | ||||
} | } | ||||
public function attachBuildable(HarbormasterBuildable $buildable = null) { | |||||
$this->buildable = $buildable; | |||||
return $this; | |||||
} | |||||
public function getBuildable() { | |||||
return $this->assertAttached($this->buildable); | |||||
} | |||||
/* -( PhabricatorPolicyInterface )----------------------------------------- */ | /* -( PhabricatorPolicyInterface )----------------------------------------- */ | ||||
public function getCapabilities() { | public function getCapabilities() { | ||||
return array( | return array( | ||||
PhabricatorPolicyCapability::CAN_VIEW, | PhabricatorPolicyCapability::CAN_VIEW, | ||||
); | ); | ||||
▲ Show 20 Lines • Show All 128 Lines • Show Last 20 Lines |