public function __construct($name, $host, $port, $channel) { parent::__construct($name); $this->host = $host; $this->port = $port; $this->channel = $channel; }
public function __construct($name, JobServiceInterface $job_service, $exchange) { Assertion::string($exchange); parent::__construct($name); $this->job_service = $job_service; $this->exchange = $exchange; }
public function __construct($name, EventBusInterface $event_bus) { parent::__construct($name); $this->event_bus = $event_bus; }