Assignment.php
386 Bytes
<?php
namespace app\ht\exts\rbac;
use yii\base\Object;
/**
* Assignment represents an assignment of a role to a user.
*
* @author Nemo Luo <378107001@qq,com>
* @since 2.0
*/
class Assignment extends Object
{
/**
* @var string|integer user ID (see [[\yii\web\User::id]])
*/
public $userId;
/**
* @var string the role name
*/
public $roleId;
}