const STATUS_ACTIVE = 10;
const STATUS_USER = 15;
const STATUS_DELETED = 0;
const STATUS_ACTIVE = 10;
const STATUS_WAIT = 2;
const STATUS_USER = 15;
и в public function rules()
{
return [
['status', 'default', 'value' => self::STATUS_ACTIVE],
['status', 'in', 'range' => [
self::STATUS_ACTIVE,
self::STATUS_DELETED,
self::STATUS_WAIT,
self::STATUS_USER
]],
];
}