/** * @param Feeling $feeling * @return array */ public static function extractHowAreYouFeeling(Feeling $feeling) { return array_merge($feeling->getNormalisedValues(), array('feelingSectionCompleted' => true === $feeling->isCompleted() ? "true" : "false")); }
/** * @inheritdoc */ public function isCompleted() { return $this->feelings->isCompleted() && $this->hindrances->isCompleted() && $this->dependants->isCompleted() && $this->motivations->isCompleted(); }