src/MediaServices/MediaServicesRestProxy.php
public function createChannel(Channel $channel)
    {
        $op = $this->sendCreateChannelOperation($channel);

        // waiting for create operation finishes
        $op = $this->awaitOperation($op);

        if ($op->getState() != OperationState::Succeeded) {
            return null;
        }

        // get and return the createChannel
        return $this->getChannel($op->getTargetEntityId());
    }
public function createChannel(Channel $channel)
    {
        $op = $this->sendCreateChannelOperation($channel);

        // waiting for create operation finishes
        $op = $this->awaitOperation($op);

        if ($op->getState() != OperationState::Succeeded) {
            return null;
        }

        // get and return the createChannel
        return $this->getChannel($op->getTargetEntityId());
    }
public function createChannel ( Channel $ channel ) { $ op = $ this -> sendCreateChannelOperation ( $ channel ) ; // waiting for create operation finishes $ op = $ this -> awaitOperation ( $ op ) ; if ( $ op -> getState ( ) != OperationState :: Succeeded ) { return null ; } // get and return the createChannel return $ this -> getChannel ( $ op -> getTargetEntityId ( ) ) ; }
Create a Channel.

@param Channel $channel Channel data

@return Channel the created channel
Create a Channel .