public function setPrefix(string $prefix) : RouterInterface {
        $prefix = trim($prefix, '/');
        $this->prefix = $prefix.(strlen($prefix) ? '/' : '');
        return $this;
    }
public function setPrefix(string $prefix) : RouterInterface {
        $prefix = trim($prefix, '/');
        $this->prefix = $prefix.(strlen($prefix) ? '/' : '');
        return $this;
    }
public function setPrefix ( string $ prefix ) : RouterInterface { $ prefix = trim ( $ prefix , '/' ) ; $ this -> prefix = $ prefix . ( strlen ( $ prefix ) ? '/' : '' ) ; return $ this ; }
Set the prefix for all future URLs, used mainly internally.
@param  string    $prefix the prefix to prepend
@return self
Set the prefix for all future URLs used mainly internally .