for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Wandu\Annotation;
class AnnotationBag
{
/** @var array */
protected $classAnnos;
/** @var array[] */
protected $propAnnos;
protected $methodAnnos;
/**
* @param array $classAnnos
* @param array $propAnnos
* @param array $methodAnnos
*/
public function __construct(array $classAnnos, array $propAnnos, array $methodAnnos)
$this->classAnnos = $classAnnos;
$this->propAnnos = $propAnnos;
$this->methodAnnos = $methodAnnos;
}
* @return array
public function getClassAnnotations(): array
return $this->classAnnos;
public function getPropertiesAnnotations(): array
return $this->propAnnos;
* @param string $name
public function getPropertyAnnotations(string $name): array
return $this->propAnnos[$name] ?? [];
public function getMethodsAnnotations(): array
return $this->methodAnnos;
public function getMethodAnnotations(string $name): array
return $this->methodAnnos[$name] ?? [];