Repository extends BaseRepository implements IRepository, IFindByExternalId, IFindByCoords, IFindByText, IFindParents, ISource
Class Google
Table of Contents
Interfaces
- IRepository
- Interface IRepository
- IFindByExternalId
- Interface IFindByExternalId
- IFindByCoords
- IFindByText
- Interface IFindByText
- IFindParents
- Interface IFindParent
- ISource
- Interface ISource
Methods
- __construct() : mixed
- findByCoords() : Location|null
- findByExternalId() : Location|null|bool
- findByText() : Collection|bool
- findParents() : Parents
- getSourceCode() : string
- Returns source code
Methods
__construct()
public
__construct(string $apiKey, HttpClient $httpClient, GoogleSource $googleSource[, CachedPool $cachePool = null ]) : mixed
Parameters
- $apiKey : string
- $httpClient : HttpClient
- $googleSource : GoogleSource
- $cachePool : CachedPool = null
findByCoords()
public
findByCoords(float $lat, float $lng, int $zoom, string $languageId) : Location|null
Parameters
- $lat : float
- $lng : float
- $zoom : int
- $languageId : string
Return values
Location|nullfindByExternalId()
public
findByExternalId(string $locationExternalId, string $sourceCode, string $languageId) : Location|null|bool
Parameters
- $locationExternalId : string
- $sourceCode : string
- $languageId : string
Tags
Return values
Location|null|boolfindByText()
public
findByText(string $query, string $languageId) : Collection|bool
Parameters
- $query : string
- $languageId : string
Tags
Return values
Collection|boolfindParents()
public
findParents(Location $location, string $languageId) : Parents
Parameters
- $location : Location
- $languageId : string
Tags
Return values
ParentsgetSourceCode()
Returns source code
public
static getSourceCode() : string