1 | <?php |
||
20 | class ReservationSession |
||
21 | { |
||
22 | const KEY = 'EventTickets'; |
||
23 | |||
24 | /** |
||
25 | * Get the session variable |
||
26 | * |
||
27 | * @return Reservation|DataObject |
||
|
|||
28 | */ |
||
29 | public static function get() |
||
35 | |||
36 | /** |
||
37 | * Set the session variable |
||
38 | * |
||
39 | * @param Reservation $reservation |
||
40 | */ |
||
41 | public static function set(Reservation $reservation) |
||
45 | |||
46 | /** |
||
47 | * Start the ticket session |
||
48 | * |
||
49 | * @param CalendarEvent $event |
||
50 | * |
||
51 | * @return Reservation |
||
52 | */ |
||
53 | public static function start(CalendarEvent $event) |
||
61 | |||
62 | /** |
||
63 | * End the Ticket session |
||
64 | */ |
||
65 | public static function end() |
||
76 | } |
This check compares the return type specified in the
@return
annotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.