-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconsole.php
More file actions
38 lines (30 loc) · 1.03 KB
/
console.php
File metadata and controls
38 lines (30 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?php
include "vendor/autoload.php";
$boardingCardList = new \TripSorter\BoardingCardList();
$boardingCardList->add(
(new \TripSorter\Card\AirportBusCard("Barcelona", "Gerona Airport"))
->setNumber("")
->setSeat("No seat assignment")
);
$boardingCardList->add(
(new \TripSorter\Card\TrainCard("Madrid", "Barcelona"))
->setNumber("78A")
->setSeat("45B")
);
$boardingCardList->add(
(new \TripSorter\Card\PlaneCard("Stockholm", "New York JFK"))
->setNumber("SK22")
->setSeat("7B")
->setGate("22")
->setBaggageInformation("Baggage will we automatically transferred from your last leg")
);
$boardingCardList->add(
(new \TripSorter\Card\PlaneCard("Gerona Airport", "Stockholm"))
->setNumber("SK455")
->setSeat("3A")
->setGate("45B")
->setBaggageInformation("Baggage drop at ticket counter 344")
);
$doubleLinkedListService = new \TripSorter\Library\DoubleLinkedListService();
$doubleLinkedListService->link($boardingCardList);
echo $boardingCardList;