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

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

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

Свойство Тип Описание
$arrival string The arrival time to the checkpoint (e.g. 14:58:00).
$arrivalTimestamp integer
$delay integer
$departure string The departure time from the checkpoint, can be null.
$departureTimestamp integer
$location Transport\Entity\Location\Location
$platform string The arrival/departure platform (e.g. 8).
$prognosis Prognosis The checkpoint prognosis.
$realtimeAvailability string
$station Transport\Entity\Location\Station A location object showing this line's stop at the requested station.

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

Метод Описание
__construct ( )
calculateDateTime ( string $time, DateTime $referenceDate, $stopPrognosis = null ) : DateTime Calculates a datetime by parsing the time and date given.
createFromXml ( SimpleXMLElement $xml, DateTime $date, Stop $obj = null )

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

__construct() публичный Метод

public __construct ( )

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

Calculates a datetime by parsing the time and date given.
public static calculateDateTime ( string $time, DateTime $referenceDate, $stopPrognosis = null ) : DateTime
$time string The time to parse, can contain an optional offset prefix (e.g., "02d")
$referenceDate DateTime The date
Результат DateTime The parsed time in ISO format

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

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

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

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

The arrival time to the checkpoint (e.g. 14:58:00).
public string $arrival
Результат string

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

public int $arrivalTimestamp
Результат integer

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

public int $delay
Результат integer

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

The departure time from the checkpoint, can be null.
public string $departure
Результат string

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

public int $departureTimestamp
Результат integer

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

public Location,Transport\Entity\Location $location
Результат Transport\Entity\Location\Location

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

The arrival/departure platform (e.g. 8).
public string $platform
Результат string

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

The checkpoint prognosis.
public Prognosis,Transport\Entity\Schedule $prognosis
Результат Prognosis

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

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

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

A location object showing this line's stop at the requested station.
public Station,Transport\Entity\Location $station
Результат Transport\Entity\Location\Station