for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php namespace Arcanedev\GeoLocation\Google\Directions;
use Arcanedev\GeoLocation\Google\AbstractResponse;
/**
* Class DirectionsResponse
*
* @package Arcanedev\GeoLocation\Google\Directions
* @author ARCANEDEV <[email protected]>
*/
class DirectionsResponse extends AbstractResponse
{
/* -----------------------------------------------------------------
| Properties
| -----------------------------------------------------------------
* The routes collection.
* @var \Arcanedev\GeoLocation\Google\Directions\Entities\RouteCollection
protected $routes;
| Getters & Setters
* Get the routes.
* @return \Arcanedev\GeoLocation\Google\Directions\Entities\RouteCollection
public function getRoutes()
if (is_null($this->routes)) {
$this->routes = Entities\RouteCollection::load(
$this->get('routes', [])
);
}
return $this->routes;
| Main Methods
* Get the instance as an array.
* @return array
public function toArray()
return [
//
];