src/MediaServices/Models/ChannelInput.php
public function fromArray($options)
    {
        if (!empty($options['KeyFrameInterval'])) {
            Validate::isString($options['KeyFrameInterval'], 'options[KeyFrameInterval]');
            $this->_keyFrameInterval = $options['KeyFrameInterval'];
        }

        if (isset($options['StreamingProtocol'])) {
            Validate::isString($options['StreamingProtocol'], 'options[StreamingProtocol]');
            $this->_streamingProtocol = $options['StreamingProtocol'];
        }

        if (isset($options['AccessControl'])) {
            Validate::isArray($options['AccessControl'], 'options[AccessControl]');
            $this->_accessControl = ChannelInputAccessControl::createFromOptions($options['AccessControl']);
        }

        if (!empty($options['Endpoints'])) {
            Validate::isArray($options['Endpoints'], 'options[Endpoints]');
            foreach ($options['Endpoints'] as $endpoint) {
                $this->_endpoints[] = ChannelEndpoint::createFromOptions($endpoint);
            }
        }
    }
public function fromArray($options)
    {
        if (!empty($options['KeyFrameInterval'])) {
            Validate::isString($options['KeyFrameInterval'], 'options[KeyFrameInterval]');
            $this->_keyFrameInterval = $options['KeyFrameInterval'];
        }

        if (isset($options['StreamingProtocol'])) {
            Validate::isString($options['StreamingProtocol'], 'options[StreamingProtocol]');
            $this->_streamingProtocol = $options['StreamingProtocol'];
        }

        if (isset($options['AccessControl'])) {
            Validate::isArray($options['AccessControl'], 'options[AccessControl]');
            $this->_accessControl = ChannelInputAccessControl::createFromOptions($options['AccessControl']);
        }

        if (!empty($options['Endpoints'])) {
            Validate::isArray($options['Endpoints'], 'options[Endpoints]');
            foreach ($options['Endpoints'] as $endpoint) {
                $this->_endpoints[] = ChannelEndpoint::createFromOptions($endpoint);
            }
        }
    }
public function fromArray ( $ options ) { if ( ! empty ( $ options [ 'KeyFrameInterval' ] ) ) { Validate :: isString ( $ options [ 'KeyFrameInterval' ] , 'options[KeyFrameInterval]' ) ; $ this -> _keyFrameInterval = $ options [ 'KeyFrameInterval' ] ; } if ( isset ( $ options [ 'StreamingProtocol' ] ) ) { Validate :: isString ( $ options [ 'StreamingProtocol' ] , 'options[StreamingProtocol]' ) ; $ this -> _streamingProtocol = $ options [ 'StreamingProtocol' ] ; } if ( isset ( $ options [ 'AccessControl' ] ) ) { Validate :: isArray ( $ options [ 'AccessControl' ] , 'options[AccessControl]' ) ; $ this -> _accessControl = ChannelInputAccessControl :: createFromOptions ( $ options [ 'AccessControl' ] ) ; } if ( ! empty ( $ options [ 'Endpoints' ] ) ) { Validate :: isArray ( $ options [ 'Endpoints' ] , 'options[Endpoints]' ) ; foreach ( $ options [ 'Endpoints' ] as $ endpoint ) { $ this -> _endpoints [ ] = ChannelEndpoint :: createFromOptions ( $ endpoint ) ; } } }
Fill ChannelInput from array.

@param array $options Array containing values for object properties
Fill ChannelInput from array .