PHP Класс Transport\Entity\Schedule\Journey

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$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).

Открытые методы

Метод Описание
createFromXml ( SimpleXMLElement $xml, DateTime $date, Journey $obj = null )

Описание методов

createFromXml() публичный статический Метод

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

Описание свойств

$capacity1st публичное свойство

The maximum estimated occupation load of 1st class coaches (e.g. 1).
public int $capacity1st
Результат integer

$capacity2nd публичное свойство

The maximum estimated occupation load of 2nd class coaches (e.g. 2).
public int $capacity2nd
Результат integer

$category публичное свойство

The type of connection this is (e.g. ICN).
public string $category
Результат string

$categoryCode публичное свойство

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
Результат integer

$name публичное свойство

The name of the connection (e.g. ICN 518).
public string $name
Результат string

$number публичное свойство

The number of the connection's line (e.g. 518).
public string $number
Результат string

$operator публичное свойство

The operator of the connection's line (e.g. BBA).
public string $operator
Результат string

$passList публичное свойство

Checkpoints the train passed on the journey.
public Stop[],Transport\Entity\Schedule $passList
Результат Stop[]

$subcategory публичное свойство

public string $subcategory
Результат string

$to публичное свойство

The final destination of this line (e.g. Aarau Rohr, Unterdorf).
public string $to
Результат string