src/MediaServices/Models/Task.php
public static function createFromOptions(array $options)
    {
        Validate::notNull($options['TaskBody'], 'options[TaskBody]');
        Validate::notNull($options['Options'], 'options[Options]');
        Validate::notNull($options['MediaProcessorId'], 'options[MediaProcessorId]');

        $task = new self(
            $options['TaskBody'],
            $options['MediaProcessorId'],
            $options['Options']
        );
        $task->fromArray($options);

        return $task;
    }
public static function createFromOptions(array $options)
    {
        Validate::notNull($options['TaskBody'], 'options[TaskBody]');
        Validate::notNull($options['Options'], 'options[Options]');
        Validate::notNull($options['MediaProcessorId'], 'options[MediaProcessorId]');

        $task = new self(
            $options['TaskBody'],
            $options['MediaProcessorId'],
            $options['Options']
        );
        $task->fromArray($options);

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

@param array $options Array containing values for object properties

@return Task
Create task from array .