PHP Class Transport\API

Afficher le fichier Open project: opendatach/transport

Protected Properties

Свойство Type Description
$browser Buzz\Browser
$lang string

Méthodes publiques

Méthode Description
__construct ( Buzz\Browser $browser = null, $lang = 'EN' )
findConnections ( ConnectionQuery $query ) : array
findLocations ( LocationQuery $query ) : array
findNearbyLocations ( NearbyQuery $query ) : array
getStationBoard ( StationBoardQuery $query ) : array
sendQuery ( Query $query, $url = self::URL ) : Buzz\Message\Response

Private Methods

Méthode Description
sendAndParseQuery ( Query $query ) : SimpleXMLElement

Method Details

__construct() public méthode

public __construct ( Buzz\Browser $browser = null, $lang = 'EN' )
$browser Buzz\Browser

findConnections() public méthode

public findConnections ( ConnectionQuery $query ) : array
$query Transport\Entity\Schedule\ConnectionQuery
Résultat array

findLocations() public méthode

public findLocations ( LocationQuery $query ) : array
$query Transport\Entity\Location\LocationQuery
Résultat array

findNearbyLocations() public méthode

public findNearbyLocations ( NearbyQuery $query ) : array
$query Transport\Entity\Location\NearbyQuery
Résultat array

getStationBoard() public méthode

public getStationBoard ( StationBoardQuery $query ) : array
$query Transport\Entity\Schedule\StationBoardQuery
Résultat array

sendQuery() public méthode

public sendQuery ( Query $query, $url = self::URL ) : Buzz\Message\Response
$query Transport\Entity\Query
Résultat Buzz\Message\Response

Property Details

$browser protected_oe property

protected Browser,Buzz $browser
Résultat Buzz\Browser

$lang protected_oe property

protected string $lang
Résultat string