Files
Phraseanet/lib/Alchemy/Phrasea/Databox/Subdef/SubdefPresetProvider.php
Mike Ng 3dd4c50350 Merge branch 'master-alchemy' into PHRAS-1735_add_git_log
# Conflicts:
#	resources/www/common/js/components/common.js
2018-01-08 16:26:28 +04:00

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];
}
}