phpDocumentor\Reflection\DocBlock\Tag\MethodTag::getMethodName PHP Method

getMethodName() public method

Retrieves the method name.
public getMethodName ( ) : string
return string
    public function getMethodName()
    {
        return $this->method_name;
    }

Usage Example

Exemplo n.º 1
0
 /**
  * Creates a new Descriptor from the given Reflector.
  *
  * @param MethodTag $data
  *
  * @return MethodDescriptor
  */
 public function create($data)
 {
     $descriptor = new MethodDescriptor($data->getName());
     $descriptor->setDescription($data->getDescription());
     $descriptor->setMethodName($data->getMethodName());
     $response = new ReturnDescriptor('return');
     $response->setTypes($this->builder->buildDescriptor(new Collection($data->getTypes())));
     $descriptor->setResponse($response);
     foreach ($data->getArguments() as $argument) {
         $argumentDescriptor = $this->createArgumentDescriptorForMagicMethod($argument);
         $descriptor->getArguments()->set($argumentDescriptor->getName(), $argumentDescriptor);
     }
     return $descriptor;
 }
All Usage Examples Of phpDocumentor\Reflection\DocBlock\Tag\MethodTag::getMethodName