ICanBoogie
  • Documentation
  • API Reference
  • Validate master
Namespaces
  • ICanBoogie
    • Validate
      • Reader
      • Validation
      • Validator
      • ValidatorProvider
Interfaces
  • IfCallable
  • UnlessCallable

Interface IfCallable

Callable interface for the ValidatorOptions::OPTION_IF option.

Namespace: ICanBoogie\Validate\Validation
Located at Validation/IfCallable.php

Methods summary

public __invoke( ICanBoogie\Validate\Context $context ) : boolean

Whether the validator should be used.

Whether the validator should be used.

Parameters

$context

Returns

boolean
true if the validator should be used, false otherwise.
Validate master – Check on GitHub – API documentation generated by ApiGen