You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

LuRouteDbo.php 2.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: robin
  5. * Date: 10/22/15
  6. * Time: 7:52 PM
  7. */
  8. namespace Luticate\Utils\Dbo;
  9. class LuRouteDbo
  10. {
  11. /**
  12. * @var string
  13. */
  14. private $_url;
  15. /**
  16. * @var string
  17. */
  18. private $_controllerClass;
  19. /**
  20. * @var string
  21. */
  22. private $_controllerMethod;
  23. /**
  24. * @return string
  25. */
  26. public function getControllerClass()
  27. {
  28. return $this->_controllerClass;
  29. }
  30. /**
  31. * @param string $controllerClass
  32. */
  33. public function setControllerClass($controllerClass)
  34. {
  35. $this->_controllerClass = $controllerClass;
  36. }
  37. /**
  38. * @return string
  39. */
  40. public function getControllerMethod()
  41. {
  42. return $this->_controllerMethod;
  43. }
  44. /**
  45. * @param string $controllerMethod
  46. */
  47. public function setControllerMethod($controllerMethod)
  48. {
  49. $this->_controllerMethod = $controllerMethod;
  50. }
  51. /**
  52. * @var string[]
  53. */
  54. private $_permissions;
  55. /**
  56. * @var string[]
  57. */
  58. private $_middlewares;
  59. /**
  60. * @return \string[]
  61. */
  62. public function getMiddlewares()
  63. {
  64. return $this->_middlewares;
  65. }
  66. /**
  67. * @param \string[] $middlewares
  68. */
  69. public function setMiddlewares($middlewares)
  70. {
  71. $this->_middlewares = $middlewares;
  72. }
  73. /**
  74. * @var string
  75. */
  76. private $_method;
  77. /**
  78. * @return string
  79. */
  80. public function getMethod()
  81. {
  82. return $this->_method;
  83. }
  84. /**
  85. * @param string $method
  86. */
  87. public function setMethod($method)
  88. {
  89. $this->_method = $method;
  90. }
  91. /**
  92. * @return string
  93. */
  94. public function getUrl()
  95. {
  96. return $this->_url;
  97. }
  98. /**
  99. * @param string $url
  100. */
  101. public function setUrl($url)
  102. {
  103. $this->_url = $url;
  104. }
  105. /**
  106. * @return \string[]
  107. */
  108. public function getPermissions()
  109. {
  110. return $this->_permissions;
  111. }
  112. /**
  113. * @param \string[] $permissions
  114. */
  115. public function setPermissions($permissions)
  116. {
  117. $this->_permissions = $permissions;
  118. }
  119. }