PhalconRest\Export\Documentation\ApiEndpoint::getName PHP Method

getName() public method

public getName ( )
    public function getName()
    {
        return $this->name;
    }

Usage Example

 public function transform(DocumentationEndpoint $endpoint)
 {
     return ['name' => $endpoint->getName(), 'description' => $endpoint->getDescription(), 'httpMethod' => $endpoint->getHttpMethod(), 'path' => $endpoint->getPath(), 'exampleResponse' => $endpoint->getExampleResponse(), 'allowedRoles' => $endpoint->getAllowedRoles()];
 }