public function getAdapter() { if (!$this->adapter) { $this->setAdapter(new DefaultAdapter()); } return $this->adapter; }