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

        $assetFile = new self($options['Name'], $options['ParentAssetId']);
        $assetFile->fromArray($options);

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

        $assetFile = new self($options['Name'], $options['ParentAssetId']);
        $assetFile->fromArray($options);

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

@param array $options Array containing values for object properties

@return AssetFile
Create asset file from array .