Files
Phraseanet/lib/Alchemy/Phrasea/Databox/Subdef/SubdefPresetProvider.php
2017-12-13 01:58:36 +01:00

19 lines
428 B
PHP

<?php
namespace Alchemy\Phrasea\Databox\Subdef;
class SubdefPresetProvider
{
private $presets = [];
/**
* @param string $type Type of media for which to get presets
* @return SubdefPreset[]
*/
public function getPresets($type)
{
if (! isset($this->presets[$type])) {
throw new \InvalidArgumentException('Invalid type');
}
return $this->presets[$type];
}
}