public function testGetSetLackMotivation() { $this->assertFalse($this->instance->isLackMotivation()); $this->assertTrue($this->instance->setLackMotivation(true) instanceof Hindrances); $this->assertTrue($this->instance->isLackMotivation()); }
/** * @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"); }