public getWorkingDirectory ( ) : string | ||
return | string | The current working directory or null if inherited from the current PHP process. |
public function getWorkingDirectory() : string
{
if ('' === $this->cwd) {
return getcwd() ?: '';
}
return $this->cwd;
}