/** * Returns an instance of the Storage object * @return \mithra62\BackupPro\Backup\Storage */ public function getStorage() { if (is_null($this->storage)) { $this->storage = new Backup\Storage($this->getStoragePath()); $this->storage->setServices($this->getServices()); } return $this->storage; }