Go\Aop\Pointcut\AnnotationPointcut::__construct PHP Method

__construct() public method

Annotation matcher constructor
public __construct ( integer $filterKind, Doctrine\Common\Annotations\Reader $reader, string $annotationName )
$filterKind integer Kind of filter, e.g. KIND_CLASS
$reader Doctrine\Common\Annotations\Reader Reader of annotations
$annotationName string Annotation class name to match
    public function __construct($filterKind, Reader $reader, $annotationName)
    {
        if (!isset(self::$mappings[$filterKind])) {
            throw new \InvalidArgumentException("Unsupported filter kind {$filterKind}");
        }
        $this->filterKind = $filterKind;
        $this->annotationName = $annotationName;
        $this->annotationReader = $reader;
        list($this->expectedClass, $this->annotationMethod) = self::$mappings[$filterKind];
    }