PHP 클래스 Transport\Entity\Schedule\Journey

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

공개 프로퍼티들

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