public function setPath(string $path): self
    {
        $realpath = realpath($path);
        if ($path && $path === $realpath) {
            $this->path = $path . DIRECTORY_SEPARATOR;
        }

        return $this;
    }
public function setPath(string $path): self
    {
        $realpath = realpath($path);
        if ($path && $path === $realpath) {
            $this->path = $path . DIRECTORY_SEPARATOR;
        }

        return $this;
    }
public function setPath ( string $ path ) : self { $ realpath = realpath ( $ path ) ; if ( $ path && $ path === $ realpath ) { $ this -> path = $ path . DIRECTORY_SEPARATOR ; } return $ this ; }
Sets the path for the execution. Only needed if it is not in the PATH env.

@param string $path The path to execute dot from
Sets the path for the execution . Only needed if it is not in the PATH env .