public function getMapper() { if (!$this->configuration['mapper'] instanceof MapperInterface) { $this->configuration['mapper'] = $this->createMapper($this); } return $this->configuration['mapper']; }