src/MediaServices/Models/ContentKeyAuthorizationPolicyRestriction.php
public function fromArray($options)
    {
        if (isset($options['Name'])) {
            Validate::isString($options['Name'], 'options[Name]');
            $this->_name = $options['Name'];
        }

        if (isset($options['KeyRestrictionType'])) {
            Validate::isInteger($options['KeyRestrictionType'], 'options[KeyRestrictionType]');
            $this->_keyRestrictionType = $options['KeyRestrictionType'];
        }

        if (isset($options['Requirements'])) {
            Validate::isString($options['Requirements'], 'options[Requirements]');
            $this->_requirements = $options['Requirements'];
        }
    }
public function fromArray($options)
    {
        if (isset($options['Name'])) {
            Validate::isString($options['Name'], 'options[Name]');
            $this->_name = $options['Name'];
        }

        if (isset($options['KeyRestrictionType'])) {
            Validate::isInteger($options['KeyRestrictionType'], 'options[KeyRestrictionType]');
            $this->_keyRestrictionType = $options['KeyRestrictionType'];
        }

        if (isset($options['Requirements'])) {
            Validate::isString($options['Requirements'], 'options[Requirements]');
            $this->_requirements = $options['Requirements'];
        }
    }
public function fromArray ( $ options ) { if ( isset ( $ options [ 'Name' ] ) ) { Validate :: isString ( $ options [ 'Name' ] , 'options[Name]' ) ; $ this -> _name = $ options [ 'Name' ] ; } if ( isset ( $ options [ 'KeyRestrictionType' ] ) ) { Validate :: isInteger ( $ options [ 'KeyRestrictionType' ] , 'options[KeyRestrictionType]' ) ; $ this -> _keyRestrictionType = $ options [ 'KeyRestrictionType' ] ; } if ( isset ( $ options [ 'Requirements' ] ) ) { Validate :: isString ( $ options [ 'Requirements' ] , 'options[Requirements]' ) ; $ this -> _requirements = $ options [ 'Requirements' ] ; } }
Fill ContentKeyAuthorizationPolicyRestriction from array.

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