Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/storage/DifferentialChangeset.php
Show All 39 Lines | final class DifferentialChangeset | ||||
const METADATA_TRUSTED_ATTRIBUTES = 'attributes.trusted'; | const METADATA_TRUSTED_ATTRIBUTES = 'attributes.trusted'; | ||||
const METADATA_UNTRUSTED_ATTRIBUTES = 'attributes.untrusted'; | const METADATA_UNTRUSTED_ATTRIBUTES = 'attributes.untrusted'; | ||||
const METADATA_EFFECT_HASH = 'hash.effect'; | const METADATA_EFFECT_HASH = 'hash.effect'; | ||||
const ATTRIBUTE_GENERATED = 'generated'; | const ATTRIBUTE_GENERATED = 'generated'; | ||||
protected function getConfiguration() { | protected function getConfiguration() { | ||||
return array( | return array( | ||||
self::CONFIG_AUX_PHID => true, | |||||
self::CONFIG_SERIALIZATION => array( | self::CONFIG_SERIALIZATION => array( | ||||
'metadata' => self::SERIALIZATION_JSON, | 'metadata' => self::SERIALIZATION_JSON, | ||||
'oldProperties' => self::SERIALIZATION_JSON, | 'oldProperties' => self::SERIALIZATION_JSON, | ||||
'newProperties' => self::SERIALIZATION_JSON, | 'newProperties' => self::SERIALIZATION_JSON, | ||||
'awayPaths' => self::SERIALIZATION_JSON, | 'awayPaths' => self::SERIALIZATION_JSON, | ||||
), | ), | ||||
self::CONFIG_COLUMN_SCHEMA => array( | self::CONFIG_COLUMN_SCHEMA => array( | ||||
'oldFile' => 'bytes?', | 'oldFile' => 'bytes?', | ||||
Show All 14 Lines | return array( | ||||
self::CONFIG_KEY_SCHEMA => array( | self::CONFIG_KEY_SCHEMA => array( | ||||
'diffID' => array( | 'diffID' => array( | ||||
'columns' => array('diffID'), | 'columns' => array('diffID'), | ||||
), | ), | ||||
), | ), | ||||
) + parent::getConfiguration(); | ) + parent::getConfiguration(); | ||||
} | } | ||||
public function getPHIDType() { | |||||
return DifferentialChangesetPHIDType::TYPECONST; | |||||
} | |||||
public function getAffectedLineCount() { | public function getAffectedLineCount() { | ||||
return $this->getAddLines() + $this->getDelLines(); | return $this->getAddLines() + $this->getDelLines(); | ||||
} | } | ||||
public function attachHunks(array $hunks) { | public function attachHunks(array $hunks) { | ||||
assert_instances_of($hunks, 'DifferentialHunk'); | assert_instances_of($hunks, 'DifferentialHunk'); | ||||
$this->hunks = $hunks; | $this->hunks = $hunks; | ||||
return $this; | return $this; | ||||
▲ Show 20 Lines • Show All 649 Lines • Show Last 20 Lines |