PHP Class Transport\API

Show file Open project: opendatach/transport

Protected Properties

Property Type Description
$browser Buzz\Browser
$lang string

Public Methods

Method 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

Method Description
sendAndParseQuery ( Query $query ) : SimpleXMLElement

Method Details

__construct() public method

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

findConnections() public method

public findConnections ( ConnectionQuery $query ) : array
$query Transport\Entity\Schedule\ConnectionQuery
return array

findLocations() public method

public findLocations ( LocationQuery $query ) : array
$query Transport\Entity\Location\LocationQuery
return array

findNearbyLocations() public method

public findNearbyLocations ( NearbyQuery $query ) : array
$query Transport\Entity\Location\NearbyQuery
return array

getStationBoard() public method

public getStationBoard ( StationBoardQuery $query ) : array
$query Transport\Entity\Schedule\StationBoardQuery
return array

sendQuery() public method

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

Property Details

$browser protected property

protected Browser,Buzz $browser
return Buzz\Browser

$lang protected property

protected string $lang
return string