'raw', 'rate' => 16000 ]; $this->ent = 'igr'; $this->aue = $config['aue']; $this->rate = $config['rate']; } /** * 去除null项后返回数组形式 * * @return array */ public function toArray() { return $this->removeNull([ 'ent' => $this->ent, 'aue' => $this->aue, 'rate' => $this->rate ]); } /** * 返回toArray的Json格式 * * @return string */ public function toJson() { return $this->jsonEncode($this->toArray()); } /** * @return string */ public function getAue() { return $this->aue; } /** * @return int */ public function getRate() { return $this->rate; } }