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

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

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

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

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

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

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

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

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

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

$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

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

Duration of the journey (e.g. 00d00:43:00).
public string $duration
Результат string

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

The departure checkpoint of the connection.
public Stop,Transport\Entity\Schedule $from
Результат Stop

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

public string[] $products
Результат string[]

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

A list of sections.
public Section[],Transport\Entity\Schedule $sections
Результат Section[]

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

List of transport products (e.g. IR, S9).
public Service,Transport\Entity\Schedule $service
Результат Service

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

The arrival checkpoint of the connection.
public Stop,Transport\Entity\Schedule $to
Результат Stop

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

Service information about how regular the connection operates.
public int $transfers
Результат integer