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