public function doBeforeValidInput(\Closure $callback) { $this->validInputCallback = $callback; return $this; }