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