A Proxy class used to remove any extra arguments when the user intended to call a method in another class that is not aware of validation providers signature
object|string
The class/object to proxy.
ReflectionClass
The proxied class' reflection
Proxies validation method calls to the Validation class.
Constructor, sets the default class to use for calling methods
__call(string $method, array $arguments): bool
Proxies validation method calls to the Validation class.
The last argument (context) will be sliced off, if the validation method's last parameter is not named 'context'. This lets the various wrapped validation methods to not receive the validation context unless they need it.
string
$method the validation method to call
array
$arguments the list of arguments to pass to the method
bool
__construct(object|string $class = Validation::class)
Constructor, sets the default class to use for calling methods
object|string
$class optional the default class to proxy
ReflectionException
extension(mixed $check, array $extensions, array $context = []): bool
mixed
$check array
$extensions array
$context optional bool
The class/object to proxy.
object|string
The proxied class' reflection
ReflectionClass
© 2005–present The Cake Software Foundation, Inc.
Licensed under the MIT License.
CakePHP is a registered trademark of Cake Software Foundation, Inc.
We are not endorsed by or affiliated with CakePHP.
https://api.cakephp.org/4.4/class-Cake.Validation.RulesProvider.html