Add visibility for all class elements (#20557)

This commit is contained in:
Maksim Spirkov
2025-10-02 02:27:23 +04:00
committed by GitHub
parent 813dfc07cc
commit c82da8dc82
73 changed files with 328 additions and 331 deletions

View File

@ -39,13 +39,13 @@ class CompareValidator extends Validator
* @since 2.0.11
* @see type
*/
const TYPE_STRING = 'string';
public const TYPE_STRING = 'string';
/**
* Constant for specifying the comparison [[type]] by numeric values.
* @since 2.0.11
* @see type
*/
const TYPE_NUMBER = 'number';
public const TYPE_NUMBER = 'number';
/**
* @var string the name of the attribute to be compared with. When both this property

View File

@ -41,19 +41,19 @@ class DateValidator extends Validator
* @since 2.0.8
* @see type
*/
const TYPE_DATE = 'date';
public const TYPE_DATE = 'date';
/**
* Constant for specifying the validation [[type]] as a datetime value, used for validation with intl short format.
* @since 2.0.8
* @see type
*/
const TYPE_DATETIME = 'datetime';
public const TYPE_DATETIME = 'datetime';
/**
* Constant for specifying the validation [[type]] as a time value, used for validation with intl short format.
* @since 2.0.8
* @see type
*/
const TYPE_TIME = 'time';
public const TYPE_TIME = 'time';
/**
* @var string the type of the validator. Indicates, whether a date, time or datetime value should be validated.

View File

@ -48,7 +48,7 @@ class IpValidator extends Validator
* @see networks
* @see ranges
*/
const NEGATION_CHAR = '!';
public const NEGATION_CHAR = '!';
/**
* @var array The network aliases, that can be used in [[ranges]].