SebastiaanLuca\Router\Routers\Router::getNamespace PHP Method

getNamespace() public method

Get the default namespace with the suffix attached.
public getNamespace ( string | null $suffix = null ) : string
$suffix string | null
return string
    public function getNamespace($suffix = null)
    {
        if (!$suffix) {
            return $this->namespace;
        }
        return $this->namespace . '\\' . $suffix;
    }