/** * Set checkbox name * * @param string $name * @return LabeledCheckbox */ public function setName($name) { $this->checkbox->setName($name); $this->label->setFor($this->checkbox->getId()); return $this; }