PHP Class Transport\Entity\Schedule\Connection

ファイルを表示 Open project: opendatach/transport Class Usage Examples

Public Properties

Property Type Description
$capacity1st integer The maximum estimated occupation load of 1st class coaches (e.g. 1).
$capacity2nd integer The maximum estimated occupation load of 2nd class coaches (e.g. 2).
$duration string Duration of the journey (e.g. 00d00:43:00).
$from Stop The departure checkpoint of the connection.
$products string[]
$sections Section[] A list of sections.
$service Service List of transport products (e.g. IR, S9).
$to Stop The arrival checkpoint of the connection.
$transfers integer Service information about how regular the connection operates.

Public Methods

Method Description
createFromXml ( SimpleXMLElement $xml, Connection $obj = null )

Method Details

createFromXml() public static method

public static createFromXml ( SimpleXMLElement $xml, Connection $obj = null )
$xml SimpleXMLElement
$obj Connection

Property Details

$capacity1st public_oe property

The maximum estimated occupation load of 1st class coaches (e.g. 1).
public int $capacity1st
return integer

$capacity2nd public_oe property

The maximum estimated occupation load of 2nd class coaches (e.g. 2).
public int $capacity2nd
return integer

$duration public_oe property

Duration of the journey (e.g. 00d00:43:00).
public string $duration
return string

$from public_oe property

The departure checkpoint of the connection.
public Stop,Transport\Entity\Schedule $from
return Stop

$products public_oe property

public string[] $products
return string[]

$sections public_oe property

A list of sections.
public Section[],Transport\Entity\Schedule $sections
return Section[]

$service public_oe property

List of transport products (e.g. IR, S9).
public Service,Transport\Entity\Schedule $service
return Service

$to public_oe property

The arrival checkpoint of the connection.
public Stop,Transport\Entity\Schedule $to
return Stop

$transfers public_oe property

Service information about how regular the connection operates.
public int $transfers
return integer