Adamgoose\Routing\Annotations\MethodEndpoint::getPaths PHP Method

getPaths() public method

Get all of the path definitions for an endpoint.
public getPaths ( ) : array
return array
    public function getPaths()
    {
        return $this->paths;
    }

Usage Example

Exemplo n.º 1
0
 /**
  * {@inheritdoc}
  */
 public function modify(MethodEndpoint $endpoint, ReflectionMethod $method)
 {
     if ($endpoint->hasPaths()) {
         foreach ($endpoint->getPaths() as $path) {
             $path->middleware = array_merge($path->middleware, (array) $this->value);
         }
     } else {
         $endpoint->middleware = array_merge($endpoint->middleware, (array) $this->value);
     }
 }
All Usage Examples Of Adamgoose\Routing\Annotations\MethodEndpoint::getPaths