public function oneSheetToArray(QuestionSheet $sheet)
 {
     return ['name' => $sheet->getName(), 'content' => $sheet->getContent()];
 }
コード例 #2
0
 /**
  * Changes values of this object.
  * 
  * @param QuestionSheet $anotherSheet
  * 
  * @return null
  */
 public function copyDataFrom(QuestionSheet $anotherSheet)
 {
     $this->setContent($anotherSheet->getContent());
     $this->setName($anotherSheet->getName());
 }