Assignment.php 709 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 17 18 19
 * @author Qiang Xue <qiang.xue@gmail.com>
 * @author Alexander Kochetov <creocoder@gmail.com>
 * @since 2.0
 */
20
class Assignment extends Object
21
{
22
    /**
23
     * @var string|integer user ID (see [[\yii\web\User::id]])
24 25 26
     */
    public $userId;
    /**
27
     * @return string the role name
28
     */
29
    public $roleName;
30
    /**
31
     * @var integer UNIX timestamp representing the assignment creation time
32
     */
33
    public $createdAt;
34
}