Class ValidateActiveRecord
Validates an active record.
Namespace: ICanBoogie\ActiveRecord\Validate
Located at ActiveRecord/Validate/ValidateActiveRecord.php
Located at ActiveRecord/Validate/ValidateActiveRecord.php
Methods summary
public
__invoke( ICanBoogie\ActiveRecord
$record
)
: ICanBoogie\Validate\ValidationErrors|array
Validates an active record.
protected
create_validator_provider( void )
: ICanBoogie\Validate\ValidatorProvider
Creates validator provider.
protected
create_validator( array $rules
, callable $validator_provider
= null, callable $message_formatter
= null )
: ICanBoogie\Validate\Validation
Creates validations.
protected
create_reader( ICanBoogie\ActiveRecord
$record
)
: ICanBoogie\ActiveRecord\Validate\Reader\RecordAdapter
Creates the value reader for the active record.