/** * Collects the value of this form input and stores it in the object. * @param int $filters Filters for parsing request variables, e.g. FILTER_UNSAFE_RAW, FILTER_SANITIZE_STRING, etc. */ public function collectValue($filters = null) { $this->value = Validation::parseBooleanInput($this->key, $this->index); }