queries; } /** * Configures the rule to work according to the specified data. * * @param mixed $data Either a query string or an array. * * @return void */ protected function setup($data) { // reset all the registered query $this->queries = []; foreach ((array) $data as $query) { /** * Register query through the apposite helper provided by the parent class. * This way we can prevent the issue that occurs on WordPress while exporting SQL queries * without executing them, namely that a "%" is always escaped with a random hash. * * @since 1.6 */ $this->registerQuery($query); } } }