Files
Phraseanet/lib/Alchemy/Phrasea/Media/Subdef/Provider.php
Benoît Burnichon 51023c5533 bump copyright year
2016-01-05 13:38:14 +01:00

51 lines
946 B
PHP

<?php
/*
* This file is part of Phraseanet
*
* (c) 2005-2016 Alchemy
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Alchemy\Phrasea\Media\Subdef;
abstract class Provider implements Subdef
{
protected $options = [];
protected $spec;
protected $translator;
public function registerOption(OptionType\OptionType $option)
{
$this->options[$option->getName()] = $option;
return $this;
}
public function unregisterOption($name)
{
unset($this->options[$name]);
return $this;
}
public function getOptions()
{
return $this->options;
}
public function getOption($name)
{
return $this->options[$name];
}
public function setOptionValue($name, $value)
{
$this->options[$name]->setValue($value);
return $this;
}
}