public function getHandler()
    {
        if (is_callable($this->handler)) {
            return $this->handler;
        }

        $options = $this->options;

        return function ($value) use ($options) {
            if (in_array($value, $options)) {
                return true;
            }

            return false;
        };
    }
public function getHandler()
    {
        if (is_callable($this->handler)) {
            return $this->handler;
        }

        $options = $this->options;

        return function ($value) use ($options) {
            if (in_array($value, $options)) {
                return true;
            }

            return false;
        };
    }
public function getHandler ( ) { if ( is_callable ( $ this -> handler ) ) { return $ this -> handler ; } $ options = $ this -> options ; return function ( $ value ) use ( $ options ) { if ( in_array ( $ value , $ options ) ) { return true ; } return false ; } ; }
Get callable handler.

@return  callable  The validate callback.

@since   2.0
Get callable handler .