/** * @param App\GameModule\DTO\Building $building * @param App\GameModule\DTO\Village $village * @return bool */ public function isStorageBigEnough($building, $village) { if ($building->getWood() < $village->getStorage() && $building->getClay() < $village->getStorage() && $building->getIron() < $village->getStorage()) { return TRUE; } return FALSE; }