/** * @return ChangeFile * @throws Exception */ public final function getPersistentBackend() { $backend = $this->settings->getChangeBackend(); if ($backend == 'file') { return new ChangeFile($this->settings); } throw new Exception('No suitable backend found for type "' . $backend . '"'); }