/** * @param UnitInterface $unit */ private function unitCreated(UnitInterface $unit) { /** @var CreateUnitResponderInterface $responder */ foreach ($this->responders as $responder) { $responder->unitCreated(new CreateUnitResponse($unit->getName())); } }