Neos\Flow\Aop\Pointcut\PointcutExpressionParser::parseAnnotationPattern PHP Method

parseAnnotationPattern() protected method

Parse an annotation pattern and adjust $annotationPattern and $annotationPropertyConstraints as needed.
protected parseAnnotationPattern ( string &$annotationPattern, array &$annotationPropertyConstraints ) : void
$annotationPattern string
$annotationPropertyConstraints array
return void
    protected function parseAnnotationPattern(&$annotationPattern, array &$annotationPropertyConstraints)
    {
        if (strpos($annotationPattern, '(') !== false) {
            $matches = [];
            preg_match(self::PATTERN_MATCHMETHODNAMEANDARGUMENTS, $annotationPattern, $matches);
            $annotationPattern = $matches['MethodName'];
            $annotationPropertiesPattern = $matches['MethodArguments'];
            $annotationPropertyConstraints = $this->getArgumentConstraintsFromMethodArgumentsPattern($annotationPropertiesPattern);
        }
    }