'utf8', 'resultCompress' => 'raw', 'resultFormat' => 'json', 'inputEncoding' => 'utf8', 'inputCompress' => 'raw', 'inputFormat' => 'json' ]; $this->resultEncoding = $config['resultEncoding']; $this->resultCompress = $config['resultCompress']; $this->resultFormat = $config['resultFormat']; $this->inputEncoding = $config['inputEncoding']; $this->inputCompress = $config['inputCompress']; $this->inputFormat = $config['inputFormat']; } public function toJson() { // TODO: Implement toJson() method. } public function toArray() { return self::removeNull([ 'resultEncoding' => $this->resultEncoding, 'resultCompress' => $this->resultCompress, 'resultFormat' => $this->resultFormat, 'inputEncoding' => $this->inputEncoding, 'inputCompress' => $this->inputCompress, 'inputFormat' => $this->inputFormat ]); } }