Add channels

@param \CampaignChain\CoreBundle\Entity\Channel $channels
@return Bundle
774483
public function addChannel(\CampaignChain\CoreBundle\Entity\Channel $channels)
    {
        $this->channels[] = $channels;

        return $this;
    }
1047414
public function removeLogger($channel)
    {
        if (isset($this->loggers[$channel])) {
            unset($this->loggers[$channel]);
        }

        return $this;
    }
546106
public function setMessage(ChannelInterface $channel, MessageInterface $message)
    {
        $this->messages[$channel->getIdentifier()] = $message;

        return $this;
    }
397623
public function bridge_addchannel($bridgeId = NULL, $channel = NULL, $role = NULL)
	{
		return $this->addChannel($bridgeId, $channel, $role);
	}
395664
private function setChannelRelations($channels)
    {
        $indexedChannels = [];

        /** @var Channel $channel */
        foreach ($channels as $channel) {
            $indexedChannels[$channel->getId()] = $channel;
        }

        foreach ($indexedChannels as $channel) {
            $parentId = $channel->getParentId();
            if ($parentId && array_key_exists($parentId, $indexedChannels)) {
                /** @var Channel $parent */
                $parent = $indexedChannels[$parentId];
                $channel->setParent($parent);
                $parent->addChild($channel);
            } else {
                //search endpoint returns a parent ID even for the root channel (!?!)
                //but it doesn't include that parent channel in the response
                //this is why we set the parentId to null when we detect that the channel is missing from response
                $channel->setParentId(null);
            }
        }

        return array_values($indexedChannels);
    }
24164
def channels_add_all(self, room_id, **kwargs):
        """"""
        return self.__call_api_post('channels.addAll', roomId=room_id, kwargs=kwargs)
913796
public function setChannels($channels)
	{
		if ( ! is_numeric($channels) || $channels < 1)
		{
			throw new \InvalidArgumentException('Wrong audio channels value.');
		}
		
		$this->audioChannels = $channels;
		
		return $this;
	}
328862
public function setChannels($channels)
    {
        $this->channels = [];

        foreach ($channels as $channel) {
            $this->addChannel($channel);
        }

        return $this;
    }
948239
public function channel($parameters)
	{
		if (!array_key_exists('title', $parameters) || !array_key_exists('description', $parameters) || !array_key_exists('link', $parameters))
		{
			throw new \Exception('Parameter required missing : title, description or link');
		}

		$this->channel = $parameters;

		return $this;
	}
390237
public function setChannelModule(\CampaignChain\CoreBundle\Entity\ChannelModule $channelModule = null)
    {
        $this->channelModule = $channelModule;

        return $this;
    }
1212731
protected function getChannels($channels)
    {
        $channels = trim($channels);

        if (empty($channels)) {
            throw new InvalidArgumentException('No channel found.');
        }

        return $channels === '*' ? [] : explode(',', $channels);
    }
694048
public function subscriber(Subscriber $subscriber, string $channel): self
    {
        if ($subscriber->channel) {
            $this->storage->storeSubscriber($subscriber, $channel);
        }

        $this->subscribers[$subscriber->operationName] = $subscriber->channel;

        return $this;
    }
249432
public function channel($channel)
    {
        $channel = $this->validateChannel($channel, false);

        $url = $this->getURL('channel');

        $headers = [
            'body' => [
                'private' => $this->privateKey,
                'channel' => $channel
            ]
        ];

        $response = $this->processRequest($url, $headers, 'get');

        return $response;
    }
86174
public function addChannelModule(\CampaignChain\CoreBundle\Entity\ChannelModule $channelModule)
    {
        $this->channelModules[] = $channelModule;

        return $this;
    }
671129
public function channel($channel, $callback, $options = [])
    {
        $this->channels[$channel] = $callback;

        $this->channelOptions[$channel] = $options;

        return $this;
    }
902915
public function addActivity(\CampaignChain\CoreBundle\Entity\ActivityModule $activities)
    {
        $this->activities[] = $activities;

        return $this;
    }
903524
public function addAddresse(\Sulu\Bundle\ContactBundle\Entity\Address $addresses)
    {
        $this->addresses[] = $addresses;

        return $this;
    }