/**
  * @param Motivations $motivations
  * @return array
  */
 public static function extractMotivations(Motivations $motivations)
 {
     return array("motivationsWeight" => true === $motivations->isWeight() ? "true" : "false", "motivationsEnergy" => true === $motivations->isEnergy() ? "true" : "false", "motivationsBodyPain" => true === $motivations->isBodyPain() ? "true" : "false", "motivationsFeelYounger" => true === $motivations->isFeelYounger() ? "true" : "false", "motivationsIndependence" => true === $motivations->isIndependence() ? "true" : "false", "motivationsAlertness" => true === $motivations->isAlertness() ? "true" : "false", "motivationsSocialLife" => true === $motivations->isSocialLife() ? "true" : "false", "motivationsAppearance" => true === $motivations->isAppearance() ? "true" : "false", "motivationsFamily" => true === $motivations->isFamily() ? "true" : "false", "motivationsCompleted" => true === $motivations->isCompleted() ? "true" : "false");
 }
Exemplo n.º 2
0
 /**
  * @inheritdoc
  */
 public function isCompleted()
 {
     return $this->feelings->isCompleted() && $this->hindrances->isCompleted() && $this->dependants->isCompleted() && $this->motivations->isCompleted();
 }