You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 satır
706B

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