/** * Questionnaire constructor. * @param Person $person */ public function __construct(Person $person) { $this->person = $person; $this->dateCreated = new \DateTime(); $this->aboutYou = new AboutYou($this); $this->drinking = new Drinking($this); $this->smoking = new Smoking($this); $this->eating = new Eating($this); $this->moving = new Moving($this); $this->person->setQuestionnaire($this); }