mirror of
https://github.com/yiisoft/yii2.git
synced 2025-10-29 17:48:15 +08:00
Add visibility for all class elements (#20557)
This commit is contained in:
@ -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
|
||||
|
||||
@ -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.
|
||||
|
||||
@ -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]].
|
||||
|
||||
Reference in New Issue
Block a user