Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diffusion/data/DiffusionFileContent.php
Show First 20 Lines • Show All 42 Lines • ▼ Show 20 Lines | public function getCorpus() { | ||||
return $this->corpus; | return $this->corpus; | ||||
} | } | ||||
public function toDictionary() { | public function toDictionary() { | ||||
return array( | return array( | ||||
'corpus' => $this->getCorpus(), | 'corpus' => $this->getCorpus(), | ||||
'blameDict' => $this->getBlameDict(), | 'blameDict' => $this->getBlameDict(), | ||||
'revList' => $this->getRevList(), | 'revList' => $this->getRevList(), | ||||
'textList' => $this->getTextList() | 'textList' => $this->getTextList(), | ||||
); | ); | ||||
} | } | ||||
public static function newFromConduit(array $dict) { | public static function newFromConduit(array $dict) { | ||||
return id(new DiffusionFileContent()) | return id(new DiffusionFileContent()) | ||||
->setCorpus($dict['corpus']) | ->setCorpus($dict['corpus']) | ||||
->setBlameDict($dict['blameDict']) | ->setBlameDict($dict['blameDict']) | ||||
->setRevList($dict['revList']) | ->setRevList($dict['revList']) | ||||
->setTextList($dict['textList']); | ->setTextList($dict['textList']); | ||||
} | } | ||||
} | } |