public function encoding($encoding = null) { if ($encoding === null) { return $this->_encoding; } $this->_encoding = $encoding; return $this; }