public function path($path)
    {
        if ($path !== '/' . trim($path, '/') . '/') {
            throw new Exception('Invalid path "' . $path . '", use like this /foo/', 2);
        }

        $this->path = $path;

        return $this;
    }
public function path($path)
    {
        if ($path !== '/' . trim($path, '/') . '/') {
            throw new Exception('Invalid path "' . $path . '", use like this /foo/', 2);
        }

        $this->path = $path;

        return $this;
    }
public function path ( $ path ) { if ( $ path !== '/' . trim ( $ path , '/' ) . '/' ) { throw new Exception ( 'Invalid path "' . $ path . '", use like this /foo/' , 2 ) ; } $ this -> path = $ path ; return $ this ; }
Define path for group

@param string $path
@throws \Inphinit\Experimental\Exception
@return \Inphinit\Experimental\Routing\Group
Define path for group