Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/storage/DifferentialChangeset.php
Show All 22 Lines | final class DifferentialChangeset extends DifferentialDAO | ||||
protected function getConfiguration() { | protected function getConfiguration() { | ||||
return array( | return array( | ||||
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, | ||||
)) + parent::getConfiguration(); | ), | ||||
self::CONFIG_COLUMN_SCHEMA => array( | |||||
'oldFile' => 'text255?', | |||||
'filename' => 'text255', | |||||
'changeType' => 'uint32', | |||||
'fileType' => 'uint32', | |||||
'addLines' => 'uint32', | |||||
'delLines' => 'uint32', | |||||
), | |||||
self::CONFIG_KEY_SCHEMA => array( | |||||
'diffID' => array( | |||||
'columns' => array('diffID'), | |||||
), | |||||
), | |||||
) + parent::getConfiguration(); | |||||
} | } | ||||
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'); | ||||
▲ Show 20 Lines • Show All 172 Lines • Show Last 20 Lines |