src/Sulu/Bundle/LocationBundle/Geolocator/GeolocatorResponse.php
public function toArray()
    {
        $res = [];
        foreach ($this->locations as $location) {
            $res[] = $location->toArray();
        }

        return $res;
    }
public function toArray()
    {
        $res = [];
        foreach ($this->locations as $location) {
            $res[] = $location->toArray();
        }

        return $res;
    }
public function toArray ( ) { $ res = [ ] ; foreach ( $ this -> locations as $ location ) { $ res [ ] = $ location -> toArray ( ) ; } return $ res ; }
Return an array representation of the response.

@return array
Return an array representation of the response .