private function readRouteAnnotation(\ReflectionMethod $reflectionMethod)
    {
        $annotations = [];

        if ($newAnnotations = $this->readMethodAnnotations($reflectionMethod, 'Route')) {
            $annotations = array_merge($annotations, $newAnnotations);
        }

        return $annotations;
    }
private function readRouteAnnotation(\ReflectionMethod $reflectionMethod)
    {
        $annotations = [];

        if ($newAnnotations = $this->readMethodAnnotations($reflectionMethod, 'Route')) {
            $annotations = array_merge($annotations, $newAnnotations);
        }

        return $annotations;
    }
private function readRouteAnnotation ( \ ReflectionMethod $ reflectionMethod ) { $ annotations = [ ] ; if ( $ newAnnotations = $ this -> readMethodAnnotations ( $ reflectionMethod , 'Route' ) ) { $ annotations = array_merge ( $ annotations , $ newAnnotations ) ; } return $ annotations ; }
Returns first route annotation for method.

@param \ReflectionMethod $reflectionMethod

@return RouteAnnotation[]
Returns first route annotation for method .