src/MediaServices/Models/JobTemplate.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['Created'])) {
            Validate::isDateString($options['Created'], 'options[Created]');
            $this->_created = new \DateTime($options['Created']);
        }

        if (isset($options['LastModified'])) {
            Validate::isDateString(
                $options['LastModified'],
                'options[LastModified]'
            );
            $this->_lastModified = new \DateTime($options['LastModified']);
        }

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

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

        if (isset($options['TemplateType'])) {
            Validate::isInteger($options['TemplateType'], 'options[TemplateType]');
            $this->_templateType = $options['TemplateType'];
        }
    }
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['Created'])) {
            Validate::isDateString($options['Created'], 'options[Created]');
            $this->_created = new \DateTime($options['Created']);
        }

        if (isset($options['LastModified'])) {
            Validate::isDateString(
                $options['LastModified'],
                'options[LastModified]'
            );
            $this->_lastModified = new \DateTime($options['LastModified']);
        }

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

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

        if (isset($options['TemplateType'])) {
            Validate::isInteger($options['TemplateType'], 'options[TemplateType]');
            $this->_templateType = $options['TemplateType'];
        }
    }
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 [ 'Created' ] ) ) { Validate :: isDateString ( $ options [ 'Created' ] , 'options[Created]' ) ; $ this -> _created = new \ DateTime ( $ options [ 'Created' ] ) ; } if ( isset ( $ options [ 'LastModified' ] ) ) { Validate :: isDateString ( $ options [ 'LastModified' ] , 'options[LastModified]' ) ; $ this -> _lastModified = new \ DateTime ( $ options [ 'LastModified' ] ) ; } if ( isset ( $ options [ 'JobTemplateBody' ] ) ) { Validate :: isString ( $ options [ 'JobTemplateBody' ] , 'options[JobTemplateBody]' ) ; $ this -> _jobTemplateBody = $ options [ 'JobTemplateBody' ] ; } if ( isset ( $ options [ 'NumberofInputAssets' ] ) ) { Validate :: isInteger ( $ options [ 'NumberofInputAssets' ] , 'options[NumberofInputAssets]' ) ; $ this -> _numberofInputAssets = $ options [ 'NumberofInputAssets' ] ; } if ( isset ( $ options [ 'TemplateType' ] ) ) { Validate :: isInteger ( $ options [ 'TemplateType' ] , 'options[TemplateType]' ) ; $ this -> _templateType = $ options [ 'TemplateType' ] ; } }
Fill job template from array.

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