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.

LuMiddlewareDbo.php 1.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: robin
  5. * Date: 6/5/16
  6. * Time: 6:24 PM
  7. */
  8. namespace Luticate\Utils\Dbo;
  9. class LuMiddlewareDbo extends LuDbo
  10. {
  11. /**
  12. * LuMiddlewareDbo constructor.
  13. * @param $middleware string
  14. * @param $parameters array
  15. */
  16. public function __construct($middleware = "", $parameters = [])
  17. {
  18. $this->_middleware = $middleware;
  19. $this->_parameters = $parameters;
  20. }
  21. /**
  22. * @var $_middleware string
  23. */
  24. private $_middleware;
  25. /**
  26. * @return string
  27. */
  28. public function getMiddleware()
  29. {
  30. return $this->_middleware;
  31. }
  32. /**
  33. * @param string $middleware
  34. */
  35. public function setMiddleware($middleware)
  36. {
  37. $this->_middleware = $middleware;
  38. }
  39. /**
  40. * @return array
  41. */
  42. public function getParameters()
  43. {
  44. return $this->_parameters;
  45. }
  46. /**
  47. * @param array $parameters
  48. */
  49. public function setParameters($parameters)
  50. {
  51. $this->_parameters = $parameters;
  52. }
  53. /**
  54. * @var $_parameters array
  55. */
  56. private $_parameters;
  57. }