@@ 114-127 (lines=14) @@ | ||
111 | return $address; |
|
112 | } |
|
113 | ||
114 | public function update() |
|
115 | { |
|
116 | $address = Route4Me::makeRequst(array( |
|
117 | 'url' => self::$apiUrl, |
|
118 | 'method' => 'PUT', |
|
119 | 'body' => $this->toArray(), |
|
120 | 'query' => array( |
|
121 | 'route_id' => $this->route_id, |
|
122 | 'route_destination_id' => $this->route_destination_id, |
|
123 | ), |
|
124 | )); |
|
125 | ||
126 | return Address::fromArray($address); |
|
127 | } |
|
128 | ||
129 | public function markAddress($params, $body) |
|
130 | { |
|
@@ 176-188 (lines=13) @@ | ||
173 | return $address; |
|
174 | } |
|
175 | ||
176 | public function delete() |
|
177 | { |
|
178 | $address = Route4Me::makeRequst(array( |
|
179 | 'url' => self::$apiUrl, |
|
180 | 'method' => 'DELETE', |
|
181 | 'query' => array( |
|
182 | 'route_id' => $this->route_id, |
|
183 | 'route_destination_id' => $this->route_destination_id, |
|
184 | ) |
|
185 | )); |
|
186 | ||
187 | return (bool)$address['deleted']; |
|
188 | } |
|
189 | ||
190 | public function MoveDestinationToRoute($params) |
|
191 | { |