/** * @param string $path * @param \Classes\AdaptersDriver\AbsractAdapter $driver * @param int $schema * * @return array */ private function diffFiles($path, $driver, $schema = 0) { $tables = $driver->getTables($schema); if (!$tables instanceof DbTables) { return array(); } $tablesName = $tables->toArrayFileName(); return array_diff($this->scanDir($path), $tablesName); }
public function __construct(AbstractAdapter $adapterConfig) { parent::__construct($adapterConfig); if ($adapterConfig->hasSchemas()) { $this->schema = $adapterConfig->getSchemas(); } }