public function setAutoconfirm($autoconfirm) { $this->autoconfirm = (bool) $autoconfirm; return $this; }