public function setBodySignedLen($len) { if ($len === true) { $this->showLen = true; $this->maxLen = PHP_INT_MAX; } elseif ($len === false) { $this->showLen = false; $this->maxLen = PHP_INT_MAX; } else { $this->showLen = true; $this->maxLen = (int) $len; } return $this; }