for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Ray\Aop;
class ReflectionClass extends \ReflectionClass implements Reader
{
/**
* @var WeavedInterface
*/
private $object;
* Set dependencies
public function setObject(WeavedInterface $object)
$this->object = $object;
}
* {@inheritdoc}
public function getAnnotations() : array
/** @var AbstractWeave $object */
$object = $this->object;
return unserialize($object->classAnnotations);
public function getAnnotation(string $annotationName)
$annotations = $this->getAnnotations();
foreach ($annotations as $annotation) {
if ($annotation instanceof $annotationName) {
return $annotation;