/php/bitbucket_external_repository_changeset.class.php

https://bitbucket.org/chamilo/chamilo-ext-repo-bitbucket-dev/ · PHP · 94 lines · 73 code · 16 blank · 5 comment · 0 complexity · a5162da7621b82165864171d6c750a64 MD5 · raw file

  1. <?php
  2. namespace common\extensions\external_repository_manager\implementation\bitbucket;
  3. /**
  4. *
  5. * @author magali.gillard
  6. *
  7. */
  8. class BitbucketExternalRepositoryChangeset
  9. {
  10. private $author;
  11. private $time;
  12. private $message;
  13. private $branch;
  14. private $revision;
  15. private $id;
  16. private $repository;
  17. function get_author()
  18. {
  19. return $this->author;
  20. }
  21. function set_author($author)
  22. {
  23. $this->author = $author;
  24. }
  25. function get_time()
  26. {
  27. return $this->time;
  28. }
  29. function set_time($time)
  30. {
  31. $this->time = $time;
  32. }
  33. function get_message()
  34. {
  35. return $this->message;
  36. }
  37. function set_message($message)
  38. {
  39. $this->message = $message;
  40. }
  41. function get_branch()
  42. {
  43. return $this->branch;
  44. }
  45. function set_branch($branch)
  46. {
  47. $this->branch = $branch;
  48. }
  49. function get_revision()
  50. {
  51. return $this->revision;
  52. }
  53. function set_revision($revision)
  54. {
  55. $this->revision = $revision;
  56. }
  57. function get_repository()
  58. {
  59. return $this->repository;
  60. }
  61. function set_repository($repository)
  62. {
  63. $this->repository = $repository;
  64. }
  65. function get_id()
  66. {
  67. return $this->id;
  68. }
  69. function set_id($id)
  70. {
  71. $this->id = $id;
  72. }
  73. function get_download_link()
  74. {
  75. return sprintf(BitbucketExternalRepositoryManagerConnector :: BASIC_DOWNLOAD_URL, $this->repository, $this->id);
  76. }
  77. }
  78. ?>