PHP 클래스 Transport\Entity\Schedule\Stop

파일 보기 프로젝트 열기: opendatach/transport 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$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