ZF\Console\Route::getName PHP Méthode

getName() public méthode

public getName ( ) : string
Résultat string
    public function getName()
    {
        return $this->name;
    }

Usage Example

Exemple #1
0
 /**
  * @param Route $route
  * @return self
  */
 public function addRoute(Route $route)
 {
     $name = $route->getName();
     if (isset($this->routes[$name])) {
         throw new DomainException(sprintf('Failed adding route by name %s; a route by that name has already been registered', $name));
     }
     $this->routes[$name] = $route;
     ksort($this->routes, defined('SORT_NATURAL') ? constant('SORT_NATURAL') : SORT_STRING);
     return $this;
 }
All Usage Examples Of ZF\Console\Route::getName