public function setPath(?string $path) : void
    {
        if (strpos($path, "/") !== 0) {
            $path = "/" . $path;
        }
        $this->path = $path;
    }
public function setPath(?string $path) : void
    {
        if (strpos($path, "/") !== 0) {
            $path = "/" . $path;
        }
        $this->path = $path;
    }
public function setPath ( ? string $ path ) : void { if ( strpos ( $ path , "/" ) !== 0 ) { $ path = "/" . $ path ; } $ this -> path = $ path ; }
Define o "Path" do cookie.

O valor "null" irá remover esta propriedade do cookie.

@param       ?string $path
Path.

@return      void
Define o Path do cookie .