public function __construct(RuntimeContainerInterface $runtime, ChannelInterface $channel, $receiver = null) { $this->runtime = $runtime; $this->channel = $channel; $this->receiver = $receiver !== null ? $receiver : $runtime->getParent(); }