public functiongetWorkingDirectory() : ?string {
if (null === $this->cwd) {
// getcwd() will return false if any one of the parent directories does not have// the readable or search mode set, even if the current directory doesreturngetcwd() ?: null;
}
return$this->cwd;
}