public function setWarningLimit($length) { $this->warningLimit = (int) $length ?: null; return $this; }