Assignment.php 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. <?php
  2. /*
  3. * Copyright 2014 Google Inc.
  4. *
  5. * Licensed under the Apache License, Version 2.0 (the "License"); you may not
  6. * use this file except in compliance with the License. You may obtain a copy of
  7. * the License at
  8. *
  9. * http://www.apache.org/licenses/LICENSE-2.0
  10. *
  11. * Unless required by applicable law or agreed to in writing, software
  12. * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  13. * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  14. * License for the specific language governing permissions and limitations under
  15. * the License.
  16. */
  17. namespace Google\Service\DriveActivity;
  18. class Assignment extends \Google\Model
  19. {
  20. /**
  21. * Subtype not available.
  22. */
  23. public const SUBTYPE_SUBTYPE_UNSPECIFIED = 'SUBTYPE_UNSPECIFIED';
  24. /**
  25. * An assignment was added.
  26. */
  27. public const SUBTYPE_ADDED = 'ADDED';
  28. /**
  29. * An assignment was deleted.
  30. */
  31. public const SUBTYPE_DELETED = 'DELETED';
  32. /**
  33. * An assignment reply was added.
  34. */
  35. public const SUBTYPE_REPLY_ADDED = 'REPLY_ADDED';
  36. /**
  37. * An assignment reply was deleted.
  38. */
  39. public const SUBTYPE_REPLY_DELETED = 'REPLY_DELETED';
  40. /**
  41. * An assignment was resolved.
  42. */
  43. public const SUBTYPE_RESOLVED = 'RESOLVED';
  44. /**
  45. * A resolved assignment was reopened.
  46. */
  47. public const SUBTYPE_REOPENED = 'REOPENED';
  48. /**
  49. * An assignment was reassigned.
  50. */
  51. public const SUBTYPE_REASSIGNED = 'REASSIGNED';
  52. protected $assignedUserType = User::class;
  53. protected $assignedUserDataType = '';
  54. /**
  55. * The sub-type of this event.
  56. *
  57. * @var string
  58. */
  59. public $subtype;
  60. /**
  61. * The user to whom the comment was assigned.
  62. *
  63. * @param User $assignedUser
  64. */
  65. public function setAssignedUser(User $assignedUser)
  66. {
  67. $this->assignedUser = $assignedUser;
  68. }
  69. /**
  70. * @return User
  71. */
  72. public function getAssignedUser()
  73. {
  74. return $this->assignedUser;
  75. }
  76. /**
  77. * The sub-type of this event.
  78. *
  79. * Accepted values: SUBTYPE_UNSPECIFIED, ADDED, DELETED, REPLY_ADDED,
  80. * REPLY_DELETED, RESOLVED, REOPENED, REASSIGNED
  81. *
  82. * @param self::SUBTYPE_* $subtype
  83. */
  84. public function setSubtype($subtype)
  85. {
  86. $this->subtype = $subtype;
  87. }
  88. /**
  89. * @return self::SUBTYPE_*
  90. */
  91. public function getSubtype()
  92. {
  93. return $this->subtype;
  94. }
  95. }
  96. // Adding a class alias for backwards compatibility with the previous class name.
  97. class_alias(Assignment::class, 'Google_Service_DriveActivity_Assignment');