MatomoWebsite.php 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. <?php
  2. namespace Opentalent\OtStats\Domain\Model;
  3. class MatomoWebsite
  4. {
  5. /**
  6. * Website's id in the matomo DB
  7. * @var int
  8. */
  9. public $id;
  10. /**
  11. * Name of the website in the matomo db
  12. *
  13. * @var string
  14. */
  15. public $name;
  16. /**
  17. * Main url of the website to monitor
  18. *
  19. * @var string
  20. */
  21. public $mainUrl;
  22. /**
  23. * Ips to ignore
  24. *
  25. * @var
  26. */
  27. public $excludedIps;
  28. /**
  29. * Matomo type (always 'website')
  30. *
  31. * @var string
  32. */
  33. public $type;
  34. /**
  35. * Login of the record creator (always 'matomo')
  36. *
  37. * @var string
  38. */
  39. public $creatorLogin;
  40. /**
  41. * @return int
  42. */
  43. public function getId(): int
  44. {
  45. return $this->id;
  46. }
  47. /**
  48. * @param int $id
  49. */
  50. public function setId(int $id): void
  51. {
  52. $this->id = $id;
  53. }
  54. /**
  55. * @return string
  56. */
  57. public function getName(): string
  58. {
  59. return $this->name;
  60. }
  61. /**
  62. * @param string $name
  63. */
  64. public function setName(string $name): void
  65. {
  66. $this->name = $name;
  67. }
  68. /**
  69. * @return string
  70. */
  71. public function getMainUrl(): string
  72. {
  73. return $this->mainUrl;
  74. }
  75. /**
  76. * @param string $mainUrl
  77. */
  78. public function setMainUrl(string $mainUrl): void
  79. {
  80. $this->mainUrl = $mainUrl;
  81. }
  82. /**
  83. * @return mixed
  84. */
  85. public function getExcludedIps()
  86. {
  87. return $this->excludedIps;
  88. }
  89. /**
  90. * @param mixed $excludedIps
  91. */
  92. public function setExcludedIps($excludedIps): void
  93. {
  94. $this->excludedIps = $excludedIps;
  95. }
  96. /**
  97. * @return string
  98. */
  99. public function getType(): string
  100. {
  101. return $this->type;
  102. }
  103. /**
  104. * @param string $type
  105. */
  106. public function setType(string $type): void
  107. {
  108. $this->type = $type;
  109. }
  110. /**
  111. * @return string
  112. */
  113. public function getCreatorLogin(): string
  114. {
  115. return $this->creatorLogin;
  116. }
  117. /**
  118. * @param string $creatorLogin
  119. */
  120. public function setCreatorLogin(string $creatorLogin): void
  121. {
  122. $this->creatorLogin = $creatorLogin;
  123. }
  124. }