public function heal(BeeInterface $bee, HoneyPoolInterface $pool) { if (!$pool->takeHoney(self::HEAL_COST)) { return false; } return $bee->setLifespan($bee->getLifespan() + self::HEAL_VALUE); }
public function makeHoney(HoneyPoolInterface $honeyPool) { $honeyPool->bringHoney(self::HONEY_AMOUNT); }