protected function beforeOnValidInput() { if ($this->validInputCallback !== null) { $callback = $this->validInputCallback; $callback($this); } }