1 | <?php namespace Arcanedev\GeoLocation\Google\Directions\Entities; |
||
12 | class Route |
||
13 | { |
||
14 | /* ----------------------------------------------------------------- |
||
15 | | Properties |
||
16 | | ----------------------------------------------------------------- |
||
17 | */ |
||
18 | |||
19 | /** |
||
20 | * The route summary. |
||
21 | * |
||
22 | * @var string |
||
23 | */ |
||
24 | protected $summary; |
||
25 | |||
26 | /** |
||
27 | * @var \Arcanedev\GeoLocation\Google\Directions\Entities\LegCollection |
||
28 | */ |
||
29 | protected $legs; |
||
30 | |||
31 | /** @var string */ |
||
32 | protected $copyrights; |
||
33 | |||
34 | /** @var \Arcanedev\GeoLocation\Entities\Viewport */ |
||
35 | protected $bounds; |
||
36 | |||
37 | /* ----------------------------------------------------------------- |
||
38 | | Constructor |
||
39 | | ----------------------------------------------------------------- |
||
40 | */ |
||
41 | |||
42 | /** |
||
43 | * Route constructor. |
||
44 | * |
||
45 | * @param array $data |
||
46 | */ |
||
47 | public function __construct(array $data) |
||
54 | |||
55 | /* ----------------------------------------------------------------- |
||
56 | | Getters & Setters |
||
57 | | ----------------------------------------------------------------- |
||
58 | */ |
||
59 | |||
60 | /** |
||
61 | * Get the route summary. |
||
62 | * |
||
63 | * @return string |
||
64 | */ |
||
65 | public function summary() |
||
69 | |||
70 | /** |
||
71 | * @param array $bounds |
||
72 | * |
||
73 | * @return self |
||
74 | */ |
||
75 | private function setBounds(array $bounds) |
||
84 | |||
85 | /** |
||
86 | * Get the leg collection. |
||
87 | * |
||
88 | * @return \Arcanedev\GeoLocation\Google\Directions\Entities\LegCollection |
||
89 | */ |
||
90 | public function legs() |
||
94 | |||
95 | /** |
||
96 | * Get the copyrights. |
||
97 | * |
||
98 | * @return string |
||
99 | */ |
||
100 | public function copyrights() |
||
104 | |||
105 | /** |
||
106 | * Get the bounds. |
||
107 | * |
||
108 | * @return \Arcanedev\GeoLocation\Entities\Viewport |
||
109 | */ |
||
110 | public function bounds() |
||
114 | } |
||
115 |