W3cubDocs

/CakePHP 4.4

Interface
ValidatableInterface

Describes objects that can be validated by passing a Validator object.

Namespace: Cake\Validation
Deprecated: 4.4.5 This interface is unused.

Method Summary

  • validate() public

    Validates the internal properties using a validator object and returns any validation errors found.

Method Detail

validate() public

validate(Cake\Validation\Validator $validator): array

Validates the internal properties using a validator object and returns any validation errors found.

Parameters

Cake\Validation\Validator $validator

The validator to use when validating the entity.

Returns

array

© 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/interface-Cake.Validation.ValidatableInterface.html