public function setCloseWarning($closeWarning) { $this->closeWarning = (bool) $closeWarning; return $this; }