ref = $ref; } public function __toString () { return 'PTElement[' . $this->ref . ']'; } public function getRef () { return $this->ref; } protected abstract function fetchInfo (); public static function lineTypeTextToConst ($lineTypeText) { switch ($lineTypeText) { case 'tram'; return static::TRAM; break; case 'bus'; return static::BUS; break; case 'belbus'; return static::BELBUS; break; default; return static::UNKNOWN; break; } } } ?>