/** * Initializes the backend * * @param array $options * @return void * @author Karsten Dambekalns <*****@*****.**> */ public function initialize(array $options) { if (is_array($options) || $options instanceof ArrayAccess) { foreach ($options as $key => $value) { $methodName = 'set' . ucfirst($key); if (method_exists($this, $methodName)) { $this->{$methodName}($value); } else { throw new \InvalidArgumentException('Invalid backend option "' . $key . '" for backend of type "' . get_class($this) . '"', 1259701878); } } } $this->classSchemata = $this->reflectionService->getClassSchemata(); }