src/Url.php
public function setPath($path) {

        $path = $path ?: '/';

        if($path[0] !== '/') {

            $path = '/' . $path;
        }

        $this->path = $path;

        return $this;
    }
public function setPath($path) {

        $path = $path ?: '/';

        if($path[0] !== '/') {

            $path = '/' . $path;
        }

        $this->path = $path;

        return $this;
    }
@param string $path

@return $this