Drest\Mapping\RouteMetaData::getNamedRoute PHP 메소드

getNamedRoute() 공개 메소드

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

Usage Example

예제 #1
0
파일: Registry.php 프로젝트: jdrich/drest
 /**
  * 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);
 }