Name.php 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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\Classroom;
  18. class Name extends \Google\Model
  19. {
  20. /**
  21. * The user's last name. Read-only.
  22. *
  23. * @var string
  24. */
  25. public $familyName;
  26. /**
  27. * The user's full name formed by concatenating the first and last name
  28. * values. Read-only.
  29. *
  30. * @var string
  31. */
  32. public $fullName;
  33. /**
  34. * The user's first name. Read-only.
  35. *
  36. * @var string
  37. */
  38. public $givenName;
  39. /**
  40. * The user's last name. Read-only.
  41. *
  42. * @param string $familyName
  43. */
  44. public function setFamilyName($familyName)
  45. {
  46. $this->familyName = $familyName;
  47. }
  48. /**
  49. * @return string
  50. */
  51. public function getFamilyName()
  52. {
  53. return $this->familyName;
  54. }
  55. /**
  56. * The user's full name formed by concatenating the first and last name
  57. * values. Read-only.
  58. *
  59. * @param string $fullName
  60. */
  61. public function setFullName($fullName)
  62. {
  63. $this->fullName = $fullName;
  64. }
  65. /**
  66. * @return string
  67. */
  68. public function getFullName()
  69. {
  70. return $this->fullName;
  71. }
  72. /**
  73. * The user's first name. Read-only.
  74. *
  75. * @param string $givenName
  76. */
  77. public function setGivenName($givenName)
  78. {
  79. $this->givenName = $givenName;
  80. }
  81. /**
  82. * @return string
  83. */
  84. public function getGivenName()
  85. {
  86. return $this->givenName;
  87. }
  88. }
  89. // Adding a class alias for backwards compatibility with the previous class name.
  90. class_alias(Name::class, 'Google_Service_Classroom_Name');