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

        $accessPolicy = new self($options['Name']);
        $accessPolicy->fromArray($options);

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

        $accessPolicy = new self($options['Name']);
        $accessPolicy->fromArray($options);

        return $accessPolicy;
    }
public static function createFromOptions ( array $ options ) { Validate :: notNull ( $ options [ 'Name' ] , 'options[Name]' ) ; $ accessPolicy = new self ( $ options [ 'Name' ] ) ; $ accessPolicy -> fromArray ( $ options ) ; return $ accessPolicy ; }
Create access policy from array.

@param array $options Array containing values for object properties

@return AccessPolicy
Create access policy from array .