public function getMethod() { if (($annotation = $this->getAnnotationByType('Resource')) && isset($annotation->method)) { return $annotation->method; } }