Browse: Home / Classes / Learndash_DTO_Property_Validation_Result /

Learndash_DTO_Property_Validation_Result::__construct

Learndash_DTO_Property_Validation_Result::__construct( bool $is_valid,  string $message = '' )

Constructor. Overriding the constructor in child classes and direct instantiating is disallowed.


Description #


Parameters #

$is_valid

(bool) (Required) Is validation passed.

$message

(string) (Optional) Error message if validation is not passed.

Default value: ''


Return #

(void)


Source #

File: includes/dto/validation/class-learndash-dto-property-validation-result.php


Changelog #

Changelog
Version Description
4.5.0 Introduced.