Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/storage/DifferentialDiff.php
Show All 36 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 = self::ATTACHABLE; | ||||
private $buildable = self::ATTACHABLE; | private $buildable = self::ATTACHABLE; | ||||
private $unitMessages = self::ATTACHABLE; | private $unitMessages = 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( | ||||
▲ Show 20 Lines • Show All 279 Lines • ▼ Show 20 Lines | final class DifferentialDiff | ||||
} | } | ||||
public function attachRevision(DifferentialRevision $revision = null) { | public function attachRevision(DifferentialRevision $revision = null) { | ||||
$this->revision = $revision; | $this->revision = $revision; | ||||
return $this; | return $this; | ||||
} | } | ||||
public function attachProperty($key, $value) { | public function attachProperty($key, $value) { | ||||
if (!is_array($this->properties)) { | |||||
$this->properties = array(); | |||||
} | |||||
$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); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 483 Lines • Show Last 20 Lines |