Ticks a checkbox.
\LogicException When the type provided is not correct
public function tick() : void { if ('checkbox' !== $this->type) { throw new \LogicException(\sprintf('You cannot tick "%s" as it is not a checkbox (%s).', $this->name, $this->type)); } $this->setValue(true); }