1989. Class

1989.1. Zend\Validator\Callback

1989.1.1. Methods

1989.1.1.1. __construct

__construct()

Constructor

Parameters:array|callable

1989.1.1.2. getCallback

getCallback()

Returns the set callback

Return type:mixed

1989.1.1.3. setCallback

setCallback()

Sets the callback

Parameters:string|array|callable
Return type:Callback Provides a fluent interface
Throws :ExceptionInvalidArgumentException

1989.1.1.4. getCallbackOptions

getCallbackOptions()

Returns the set options for the callback

Return type:mixed

1989.1.1.5. setCallbackOptions

setCallbackOptions()

Sets options for the callback

Parameters:mixed
Return type:Callback Provides a fluent interface

1989.1.1.6. isValid

isValid()

Returns true if and only if the set callback returns for the provided $value

Parameters:
  • mixed
  • mixed – Additional context to provide to the callback
Return type:

bool

Throws :

ExceptionInvalidArgumentException

1989.1.2. Constants

1989.1.2.1. INVALID_CALLBACK

Invalid callback

1989.1.2.2. INVALID_VALUE

Invalid value