Source of file ConfigurationAnnotation.php
Size: 0,575 Bytes - Last Modified: 2013-07-09T11:29:53+02:00
/home/theseer/Downloads/Symfony/vendor/sensio/framework-extra-bundle/Sensio/Bundle/FrameworkExtraBundle/Configuration/ConfigurationAnnotation.php
1234567891011121314151617181920212223 | <?php namespace Sensio\Bundle\FrameworkExtraBundle\Configuration; /** * Base configuration annotation. * * @author Johannes M. Schmitt <schmittjoh@gmail.com> */ abstract class ConfigurationAnnotation implements ConfigurationInterface { public function __construct(array $values) { foreach ($values as $k => $v) { if (!method_exists($this, $name = 'set'.$k)) { throw new \RuntimeException(sprintf('Unknown key "%s" for annotation "@%s".', $k, get_class($this))); } $this->$name($v); } } } |