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

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

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

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

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

        if (isset($options['Version'])) {
            Validate::isString($options['Version'], 'options[Version]');
            $this->_version = $options['Version'];
        }
    }
public function fromArray(array $options)
    {
        if (isset($options['Id'])) {
            Validate::isString($options['Id'], 'options[Id]');
            $this->_id = $options['Id'];
        }

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

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

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

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

        if (isset($options['Version'])) {
            Validate::isString($options['Version'], 'options[Version]');
            $this->_version = $options['Version'];
        }
    }
public function fromArray ( array $ options ) { if ( isset ( $ options [ 'Id' ] ) ) { Validate :: isString ( $ options [ 'Id' ] , 'options[Id]' ) ; $ this -> _id = $ options [ 'Id' ] ; } if ( isset ( $ options [ 'Name' ] ) ) { Validate :: isString ( $ options [ 'Name' ] , 'options[Name]' ) ; $ this -> _name = $ options [ 'Name' ] ; } if ( isset ( $ options [ 'Description' ] ) ) { Validate :: isString ( $ options [ 'Description' ] , 'options[Description]' ) ; $ this -> _description = $ options [ 'Description' ] ; } if ( isset ( $ options [ 'Sku' ] ) ) { Validate :: isString ( $ options [ 'Sku' ] , 'options[Sku]' ) ; $ this -> _sku = $ options [ 'Sku' ] ; } if ( isset ( $ options [ 'Vendor' ] ) ) { Validate :: isString ( $ options [ 'Vendor' ] , 'options[Vendor]' ) ; $ this -> _vendor = $ options [ 'Vendor' ] ; } if ( isset ( $ options [ 'Version' ] ) ) { Validate :: isString ( $ options [ 'Version' ] , 'options[Version]' ) ; $ this -> _version = $ options [ 'Version' ] ; } }
Fill media processor from array.

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