mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-03 13:58:55 +08:00
Add visibility for all class elements (#20557)
This commit is contained in:
@ -17,8 +17,8 @@ use yii\base\BaseObject;
|
||||
*/
|
||||
class Item extends BaseObject
|
||||
{
|
||||
const TYPE_ROLE = 1;
|
||||
const TYPE_PERMISSION = 2;
|
||||
public const TYPE_ROLE = 1;
|
||||
public const TYPE_PERMISSION = 2;
|
||||
|
||||
/**
|
||||
* @var int the type of the item. This should be either [[TYPE_ROLE]] or [[TYPE_PERMISSION]].
|
||||
|
||||
Reference in New Issue
Block a user