Conditions | 1 |
Paths | 1 |
Total Lines | 17 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
1 | <?php |
||
31 | public function findShortestPath($fromUnLocode, $toUnLocode): array |
||
32 | { |
||
33 | $transitPath = new TransitPathDto(); |
||
34 | |||
35 | $fromDate = new \DateTime('2014-03-29 19:59:23'); |
||
36 | $toDate = new \DateTime('2014-03-30 21:30:00'); |
||
37 | |||
38 | $edge = new EdgeDto(); |
||
39 | $edge->setFromUnLocode($fromUnLocode); |
||
40 | $edge->setToUnLocode($toUnLocode); |
||
41 | $edge->setFromDate($fromDate->format(\DateTime::ISO8601)); |
||
42 | $edge->setToDate($toDate->format(\DateTime::ISO8601)); |
||
43 | |||
44 | $transitPath->setEdges([$edge]); |
||
45 | |||
46 | return [$transitPath]; |
||
47 | } |
||
48 | } |
||
49 |