Esempio n. 1
0
 /**
  * @param Cms\Data\Build $data
  */
 protected function setValuesFromData(Data\Build $data)
 {
     $this->setId($data->getId());
     $this->setVersion($data->getVersion());
     $this->setTimestamp($data->getTimestamp());
     $this->setComment($data->getComment());
     $this->setCreatorName($data->getCreatorName());
     $this->setLastPublished($data->getLastPublished());
 }
Esempio n. 2
0
 /**
  * @param  BuildData $build
  *
  * @return string
  */
 private function getBuiltArchiveComment(BuildData $build)
 {
     $buildArchiveComment = $build->toArray();
     return json_encode($buildArchiveComment);
 }