for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Spiral Framework.
*
* @license MIT
* @author Anton Titov (Wolfy-J)
*/
declare(strict_types=1);
namespace Spiral\Annotations;
* @deprecated since v2.12. Will be removed in v3.0
final class AnnotatedClass
{
/** @var \ReflectionClass */
private $class;
/** @var mixed */
private $annotation;
* @param mixed $annotation
public function __construct(\ReflectionClass $class, $annotation)
$this->class = $class;
$this->annotation = $annotation;
}
public function getClass(): \ReflectionClass
return $this->class;
* @return mixed
public function getAnnotation()
return $this->annotation;