private function before(callable $before): void
    {
        if ($before instanceof Closure) {
            $this->options["before"] = $before->bindTo($this);
        } else {
            $this->options["before"] = $before;
        }
    }
private function before(callable $before): void
    {
        if ($before instanceof Closure) {
            $this->options["before"] = $before->bindTo($this);
        } else {
            $this->options["before"] = $before;
        }
    }
private function before ( callable $ before ) : void { if ( $ before instanceof Closure ) { $ this -> options [ "before" ] = $ before -> bindTo ( $ this ) ; } else { $ this -> options [ "before" ] = $ before ; } }
Set the before handler.
Set the before handler .