Assignment.php 798 Bytes
Newer Older
1 2 3 4 5 6 7
<?php
/**
 * @link http://www.yiiframework.com/
 * @copyright Copyright (c) 2008 Yii Software LLC
 * @license http://www.yiiframework.com/license/
 */

8
namespace yii\rbac;
9 10 11 12 13

use Yii;
use yii\base\Object;

/**
14
 * Assignment represents an assignment of a role to a user.
15 16
 *
 * It includes additional assignment information including [[ruleName]] and [[data]].
17
 *
18 19 20 21
 * @author Qiang Xue <qiang.xue@gmail.com>
 * @author Alexander Kochetov <creocoder@gmail.com>
 * @since 2.0
 */
22
class Assignment extends Object
23
{
24
    /**
25
     * @var string|integer user ID (see [[\yii\web\User::id]])
26 27 28
     */
    public $userId;
    /**
29
     * @return string the role name
30
     */
31
    public $roleName;
32
    /**
33
     * @var integer UNIX timestamp representing the assignment creation time
34
     */
35
    public $createdAt;
36
}