. */ namespace Doctrine\Common\Annotations; /** * Annotations class * * @license http://www.opensource.org/licenses/lgpl-license.php LGPL * @link www.doctrine-project.org * @since 2.0 * @version $Revision: 3938 $ * @author Guilherme Blanco * @author Jonathan Wage * @author Roman Borschel */ class Annotation { /** * Value property. Common among all derived classes. * * @var string */ public $value; /** * Constructor * * @param array $data Key-value for properties to be defined in this class */ public final function __construct(array $data) { foreach ($data as $key => $value) { $this->$key = $value; } } public function __get($name) { throw new \BadMethodCallException("Unknown annotation property '$name' on annotation '".get_class($this)."'."); } public function __set($name, $value) { throw new \BadMethodCallException("Unknown annotation property '$name' on annotation '".get_class($this)."'."); } }