src/MediaServices/Models/TaskTemplate.php
public static function createFromOptions(array $options)
    {
        Validate::notNull(
            $options['NumberofInputAssets'],
            'options[NumberofInputAssets]'
        );
        Validate::notNull(
            $options['NumberofOutputAssets'],
            'options[NumberofOutputAssets]'
        );

        $taskTemplate = new self(
            $options['NumberofInputAssets'],
            $options['NumberofOutputAssets']
        );
        $taskTemplate->fromArray($options);

        return $taskTemplate;
    }
public static function createFromOptions(array $options)
    {
        Validate::notNull(
            $options['NumberofInputAssets'],
            'options[NumberofInputAssets]'
        );
        Validate::notNull(
            $options['NumberofOutputAssets'],
            'options[NumberofOutputAssets]'
        );

        $taskTemplate = new self(
            $options['NumberofInputAssets'],
            $options['NumberofOutputAssets']
        );
        $taskTemplate->fromArray($options);

        return $taskTemplate;
    }
public static function createFromOptions ( array $ options ) { Validate :: notNull ( $ options [ 'NumberofInputAssets' ] , 'options[NumberofInputAssets]' ) ; Validate :: notNull ( $ options [ 'NumberofOutputAssets' ] , 'options[NumberofOutputAssets]' ) ; $ taskTemplate = new self ( $ options [ 'NumberofInputAssets' ] , $ options [ 'NumberofOutputAssets' ] ) ; $ taskTemplate -> fromArray ( $ options ) ; return $ taskTemplate ; }
Create task template from array.

@param array $options Array containing values for object properties

@return TaskTemplate
Create task template from array .