public function getDetails() { if (!$this->details) { $this->details = function_exists('posix_ttyname') ? @posix_ttyname(STDOUT) : "Can't retrieve terminal details"; } return $this->details; }