Пример #1
0
 /**
  * MEvolution constructor.
  * @param string $settingsFilePath
  * @param string $evolutionsFolderPath
  * @param int $to
  */
 public function __construct($settingsFilePath, $evolutionsFolderPath, $to)
 {
     $this->settingsFilePath = realpath($settingsFilePath);
     $this->evolutionsFolderPath = realpath($evolutionsFolderPath);
     $this->validatePaths();
     if ($to != null) {
         $this->to = (int) $to;
     }
     $this->settings = SettingsFile::parse($this->settingsFilePath);
     $this->driver = DriverFactory::get($this->settings);
     $this->filePathList = EvolutionFile::getList($this->evolutionsFolderPath);
 }