protected function preSerialize(array &$data) { parent::preSerialize($data); $data[] = $this->query; $data[] = $this->language; }