public function addChannel(ChannelInterface $channel)
    {
        $this->getChannelStore()
            ->addChannel($channel);

        $processor = $channel->getProcessor();
        if ($processor) {
            $this->getProcessorStore()->addProcessor($processor);
        }
    }
public function addChannel(ChannelInterface $channel)
    {
        $this->getChannelStore()
            ->addChannel($channel);

        $processor = $channel->getProcessor();
        if ($processor) {
            $this->getProcessorStore()->addProcessor($processor);
        }
    }
public function addChannel ( ChannelInterface $ channel ) { $ this -> getChannelStore ( ) -> addChannel ( $ channel ) ; $ processor = $ channel -> getProcessor ( ) ; if ( $ processor ) { $ this -> getProcessorStore ( ) -> addProcessor ( $ processor ) ; } }
Add a channel.

@api

@param ChannelInterface $channel
Add a channel .