PHP Class Transport\Entity\Schedule\Journey

Exibir arquivo 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).
$category string The type of connection this is (e.g. ICN).
$categoryCode integer An internal category code, indicates the type of the public transport vehicle. Possible values are 0, 1, 2, 3, 5, 8: train; 4: ship; 6: bus; 7: cable car (aerial, big); 9: tram.
$name string The name of the connection (e.g. ICN 518).
$number string The number of the connection's line (e.g. 518).
$operator string The operator of the connection's line (e.g. BBA).
$passList Stop[] Checkpoints the train passed on the journey.
$subcategory string
$to string The final destination of this line (e.g. Aarau Rohr, Unterdorf).

Public Methods

Method Description
createFromXml ( SimpleXMLElement $xml, DateTime $date, Journey $obj = null )

Method Details

createFromXml() public static method

public static createFromXml ( SimpleXMLElement $xml, DateTime $date, Journey $obj = null )
$xml SimpleXMLElement
$date DateTime
$obj Journey

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

$category public_oe property

The type of connection this is (e.g. ICN).
public string $category
return string

$categoryCode public_oe property

An internal category code, indicates the type of the public transport vehicle. Possible values are 0, 1, 2, 3, 5, 8: train; 4: ship; 6: bus; 7: cable car (aerial, big); 9: tram.
public int $categoryCode
return integer

$name public_oe property

The name of the connection (e.g. ICN 518).
public string $name
return string

$number public_oe property

The number of the connection's line (e.g. 518).
public string $number
return string

$operator public_oe property

The operator of the connection's line (e.g. BBA).
public string $operator
return string

$passList public_oe property

Checkpoints the train passed on the journey.
public Stop[],Transport\Entity\Schedule $passList
return Stop[]

$subcategory public_oe property

public string $subcategory
return string

$to public_oe property

The final destination of this line (e.g. Aarau Rohr, Unterdorf).
public string $to
return string