예제 #1
0
파일: Build.php 프로젝트: rukzuk/rukzuk
 /**
  * @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());
 }
예제 #2
0
파일: Builder.php 프로젝트: rukzuk/rukzuk
 /**
  * @param  BuildData $build
  *
  * @return string
  */
 private function getBuiltArchiveComment(BuildData $build)
 {
     $buildArchiveComment = $build->toArray();
     return json_encode($buildArchiveComment);
 }