public function getName(): string
    {
        if ($this->name === null) {
            $this->name = $this->path;
        }

        return $this->name;
    }
public function getName(): string
    {
        if ($this->name === null) {
            $this->name = $this->path;
        }

        return $this->name;
    }
public function getName ( ) : string { if ( $ this -> name === null ) { $ this -> name = $ this -> path ; } return $ this -> name ; }
Returns the name of the route.

@return string
Returns the name of the route .