/** * {@inheritdoc} */ public function getName() { return $this->bus->getName(); }
/** * Assert valid system bus. * * @param BusInterface $bus */ private function assertValidSystemBus(BusInterface $bus) { if (false === $bus instanceof SystemBus) { throw new InvalidArgumentException(sprintf('Bus with name "%s" reserved for system bus.', $bus->getName())); } }