src/MediaServices/Models/Locator.php
public static function createFromOptions(array $options)
    {
        Validate::notNull($options['AssetId'], 'options[AssetId]');
        Validate::notNull($options['AccessPolicyId'], 'options[AccessPolicyId]');
        Validate::notNull($options['Type'], 'options[Type]');

        $locator = new self(
            $options['AssetId'],
            $options['AccessPolicyId'],
            $options['Type']
        );
        $locator->fromArray($options);

        return $locator;
    }
public static function createFromOptions(array $options)
    {
        Validate::notNull($options['AssetId'], 'options[AssetId]');
        Validate::notNull($options['AccessPolicyId'], 'options[AccessPolicyId]');
        Validate::notNull($options['Type'], 'options[Type]');

        $locator = new self(
            $options['AssetId'],
            $options['AccessPolicyId'],
            $options['Type']
        );
        $locator->fromArray($options);

        return $locator;
    }
public static function createFromOptions ( array $ options ) { Validate :: notNull ( $ options [ 'AssetId' ] , 'options[AssetId]' ) ; Validate :: notNull ( $ options [ 'AccessPolicyId' ] , 'options[AccessPolicyId]' ) ; Validate :: notNull ( $ options [ 'Type' ] , 'options[Type]' ) ; $ locator = new self ( $ options [ 'AssetId' ] , $ options [ 'AccessPolicyId' ] , $ options [ 'Type' ] ) ; $ locator -> fromArray ( $ options ) ; return $ locator ; }
Create locator from array.

@param array $options Array containing values for object properties

@return Locator
Create locator from array .