Exemplo n.º 1
0
 /**
  * Export question image.
  *
  * @param Picture $picture
  *
  * @return \stdClass
  */
 private function exportImage(Picture $picture)
 {
     // Export Image
     $image = new \stdClass();
     $image->id = $picture->getId();
     $image->url = $picture->getUrl();
     $image->label = $picture->getLabel();
     $image->width = $picture->getWidth();
     $image->height = $picture->getHeight();
     return $image;
 }