src/Routing/Router.php
public function setNames($old, $name, Route $route)
    {
        // Verificar se tem old para remover
        if ((! is_null($old)) && (isset($this->allNames[$old]))) {
            unset($this->allNames[$old]);
        }

        if (! is_null($name)) {
            $this->allNames[$name] = $route;
        }
    }
public function setNames($old, $name, Route $route)
    {
        // Verificar se tem old para remover
        if ((! is_null($old)) && (isset($this->allNames[$old]))) {
            unset($this->allNames[$old]);
        }

        if (! is_null($name)) {
            $this->allNames[$name] = $route;
        }
    }
public function setNames ( $ old , $ name , Route $ route ) { // Verificar se tem old para remover if ( ( ! is_null ( $ old ) ) && ( isset ( $ this -> allNames [ $ old ] ) ) ) { unset ( $ this -> allNames [ $ old ] ) ; } if ( ! is_null ( $ name ) ) { $ this -> allNames [ $ name ] = $ route ; } }
Set name.

@param $old
@param $name
@param Route $route
Set name .