/php/bitbucket_external_repository_group_privilege.class.php

https://bitbucket.org/chamilo/chamilo-ext-repo-bitbucket-dev/ · PHP · 102 lines · 64 code · 15 blank · 23 comment · 0 complexity · bdf6556b7b5ff253225e021ce6e47174 MD5 · raw file

  1. <?php
  2. namespace common\extensions\external_repository_manager\implementation\bitbucket;
  3. /**
  4. *
  5. * @author magali.gillard
  6. *
  7. */
  8. class BitbucketExternalRepositoryGroupPrivilege
  9. {
  10. private $group;
  11. private $name;
  12. private $privilege;
  13. private $repository;
  14. private $members;
  15. private $owner;
  16. function get_group()
  17. {
  18. return $this->group;
  19. }
  20. function set_group($group)
  21. {
  22. $this->group = $group;
  23. }
  24. function get_privilege()
  25. {
  26. return $this->privilege;
  27. }
  28. function set_privilege($privilege)
  29. {
  30. $this->privilege = $privilege;
  31. }
  32. function get_repository()
  33. {
  34. return $this->repository;
  35. }
  36. function set_repository($repository)
  37. {
  38. $this->repository = $repository;
  39. }
  40. /**
  41. * @return the $members
  42. */
  43. public function get_members()
  44. {
  45. return $this->members;
  46. }
  47. /**
  48. * @param $members the $members to set
  49. */
  50. public function set_members($members)
  51. {
  52. $this->members = $members;
  53. }
  54. /**
  55. * @return the $name
  56. */
  57. public function get_name()
  58. {
  59. return $this->name;
  60. }
  61. /**
  62. * @param $name the $name to set
  63. */
  64. public function set_name($name)
  65. {
  66. $this->name = $name;
  67. }
  68. /**
  69. * @return the $owner
  70. */
  71. public function get_owner()
  72. {
  73. return $this->owner;
  74. }
  75. /**
  76. * @param $owner the $owner to set
  77. */
  78. public function set_owner($owner)
  79. {
  80. $this->owner = $owner;
  81. }
  82. public function get_owner_username()
  83. {
  84. return $this->get_owner()->username;
  85. }
  86. }
  87. ?>