public function getSqlmapGateway() { if ($this->_gateway === null) { $this->_gateway = $this->createSqlMapGateway(); } return $this->_gateway; }