Assignment.php 847 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. /**
  3. * @link http://www.yiiframework.com/
  4. * @copyright Copyright (c) 2008 Yii Software LLC
  5. * @license http://www.yiiframework.com/license/
  6. */
  7. namespace yii\rbac;
  8. use Yii;
  9. use yii\base\BaseObject;
  10. /**
  11. * Assignment represents an assignment of a role to a user.
  12. *
  13. * For more details and usage information on Assignment, see the [guide article on security authorization](guide:security-authorization).
  14. *
  15. * @author Qiang Xue <qiang.xue@gmail.com>
  16. * @author Alexander Kochetov <creocoder@gmail.com>
  17. * @since 2.0
  18. */
  19. class Assignment extends BaseObject
  20. {
  21. /**
  22. * @var string|int user ID (see [[\yii\web\User::id]])
  23. */
  24. public $userId;
  25. /**
  26. * @var string the role name
  27. */
  28. public $roleName;
  29. /**
  30. * @var int UNIX timestamp representing the assignment creation time
  31. */
  32. public $createdAt;
  33. }