mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-08 02:24:26 +00:00
21 lines
429 B
PHP
21 lines
429 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];
|
|
}
|
|
} |