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.

StopsDbo.php 1.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: robin
  5. * Date: 9/30/16
  6. * Time: 9:46 PM
  7. */
  8. namespace App\Dbo;
  9. use Luticate\Utils\Dbo\LuDbo;
  10. class StopsDbo extends LuDbo
  11. {
  12. /**
  13. * @var $_name string
  14. */
  15. protected $_name;
  16. /**
  17. * @var $_id string
  18. */
  19. protected $_id;
  20. /**
  21. * @var $_posX float
  22. */
  23. protected $_posX;
  24. /**
  25. * @var $_posY float
  26. */
  27. protected $_posY;
  28. /**
  29. * @var $_routes string[]
  30. */
  31. protected $_routes;
  32. /**
  33. * @return string
  34. */
  35. public function getName(): string
  36. {
  37. return $this->_name;
  38. }
  39. /**
  40. * @param string $name
  41. */
  42. public function setName(string $name)
  43. {
  44. $this->_name = $name;
  45. }
  46. /**
  47. * @return string
  48. */
  49. public function getId(): string
  50. {
  51. return $this->_id;
  52. }
  53. /**
  54. * @param string $id
  55. */
  56. public function setId(string $id)
  57. {
  58. $this->_id = $id;
  59. }
  60. /**
  61. * @return float
  62. */
  63. public function getPosX(): float
  64. {
  65. return $this->_posX;
  66. }
  67. /**
  68. * @param float $posX
  69. */
  70. public function setPosX(float $posX)
  71. {
  72. $this->_posX = $posX;
  73. }
  74. /**
  75. * @return float
  76. */
  77. public function getPosY(): float
  78. {
  79. return $this->_posY;
  80. }
  81. /**
  82. * @param float $posY
  83. */
  84. public function setPosY(float $posY)
  85. {
  86. $this->_posY = $posY;
  87. }
  88. /**
  89. * @return \string[]
  90. */
  91. public function getRoutes(): array
  92. {
  93. return $this->_routes;
  94. }
  95. /**
  96. * @param \string[] $routes
  97. */
  98. public function setRoutes(array $routes)
  99. {
  100. $this->_routes = $routes;
  101. }
  102. }