/**
  * @param Hindrances $hindrances
  * @return array
  */
 public static function extractHindrances(Hindrances $hindrances)
 {
     return array("hindrancesNoTime" => true === $hindrances->isNoTime() ? "true" : "false", "hindrancesOtherPeople" => true === $hindrances->isOtherPeople() ? "true" : "false", "hindrancesInsecurity" => true === $hindrances->isInsecurity() ? "true" : "false", "hindrancesNoMoney" => true === $hindrances->isNoMoney() ? "true" : "false", "hindrancesNotImportant" => true === $hindrances->isLackMotivation() ? "true" : "false", "hindrancesNotRelevant" => true === $hindrances->isNotRelevant() ? "true" : "false", "hindrancesCompleted" => true === $hindrances->isCompleted() ? "true" : "false");
 }
Ejemplo n.º 2
0
 /**
  * @inheritdoc
  */
 public function isCompleted()
 {
     return $this->feelings->isCompleted() && $this->hindrances->isCompleted() && $this->dependants->isCompleted() && $this->motivations->isCompleted();
 }