public function getAdapter() { if (null === $this->adapter) { // Defaults to GD $this->setAdapter('gd'); } return $this->adapter; }