Example #1
0
 /**
  * UpdateWorkshop constructor.
  * @param Workshop $workshop
  */
 public function __construct(Workshop $workshop)
 {
     $this->id = $workshop->getId();
     $this->title = $workshop->getTitle();
     $this->description = $workshop->getDescription();
     $this->startDate = $workshop->getStartDate();
     $this->endDate = $workshop->getEndDate();
     $this->city = $workshop->getCity();
     $this->lessons = $this->convertLessons($workshop->getLessons());
     $this->phone = $workshop->getPhone();
     $this->url = $workshop->getUrl();
     $this->email = $workshop->getEmail();
 }