Assignment.php 840 B

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