public function getWorkingDirectory() : string { if ('' === $this->cwd) { return getcwd() ?: ''; } return $this->cwd; }