public function __construct(LogTablesProvider $logTablesProvider, $tables) { $this->logTableProvider = $logTablesProvider; foreach ($tables as $table) { $this->checkTableCanBeUsedForSegmentation($table); } $this->exchangeArray(array_values($tables)); }