public function getSession() { if ($this->session === null) { $this->session = $this->doGetSession(); } return $this->session; }