Drest\Mapping\RouteMetaData::getNamedRoute PHP Method

getNamedRoute() public method

The unique named route to reference this route by Note that is should use the entities fully qualified class names
public getNamedRoute ( ) : string
return string
    public function getNamedRoute()
    {
        return ltrim($this->getClassMetaData()->getClassName(), '\\') . '::' . $this->getName();
    }

Usage Example

Beispiel #1
0
 /**
  * Does this registry have a service action for this route
  * @param \Drest\Mapping\RouteMetaData $routeMetaData
  * @return bool
  */
 public function hasServiceAction(\Drest\Mapping\RouteMetaData $routeMetaData)
 {
     return array_key_exists($routeMetaData->getNamedRoute(), $this->routes);
 }