protected function processMethod(\ReflectionMethod $method, Definition $definition)
    {
        $annotations = $this->reader->getMethodAnnotations($method);

        foreach ($annotations as $annotation)
        {
            if ($annotation instanceof AttributeAnnotation) {
                $this->validateMethodAttribute($annotation, $method);

                $attribute = $this->createAttributeByMethod($annotation, $method);
                $definition->addAttribute($attribute);
            }
        }
    }
protected function processMethod(\ReflectionMethod $method, Definition $definition)
    {
        $annotations = $this->reader->getMethodAnnotations($method);

        foreach ($annotations as $annotation)
        {
            if ($annotation instanceof AttributeAnnotation) {
                $this->validateMethodAttribute($annotation, $method);

                $attribute = $this->createAttributeByMethod($annotation, $method);
                $definition->addAttribute($attribute);
            }
        }
    }
protected function processMethod ( \ ReflectionMethod $ method , Definition $ definition ) { $ annotations = $ this -> reader -> getMethodAnnotations ( $ method ) ; foreach ( $ annotations as $ annotation ) { if ( $ annotation instanceof AttributeAnnotation ) { $ this -> validateMethodAttribute ( $ annotation , $ method ) ; $ attribute = $ this -> createAttributeByMethod ( $ annotation , $ method ) ; $ definition -> addAttribute ( $ attribute ) ; } } }
Process method of class

@param \ReflectionMethod $method
@param Definition        $definition
Process method of class