for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Doctrine\Common\Annotations;
/**
* Annotations class.
*
* @author Benjamin Eberlei <[email protected]>
* @author Guilherme Blanco <[email protected]>
* @author Jonathan Wage <[email protected]>
* @author Roman Borschel <[email protected]>
*/
class Annotation
{
* Value property. Common among all derived classes.
* @var mixed
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;
}
* Error handler for unknown property accessor in Annotation class.
* @param string $name Unknown property name.
* @throws \BadMethodCallException
public function __get($name)
throw new \BadMethodCallException(
sprintf("Unknown property '%s' on annotation '%s'.", $name, get_class($this))
);
* Error handler for unknown property mutator in Annotation class.
* @param mixed $value Property value.
public function __set($name, $value)