Conditions | 1 |
Paths | 1 |
Total Lines | 32 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
38 | protected function getManager() |
||
39 | { |
||
40 | return new class extends Manager { |
||
41 | |||
42 | public function createFooDriver() |
||
43 | { |
||
44 | return new class { |
||
45 | |||
46 | public function doAnything() |
||
47 | { |
||
48 | return 'do_anything_from_foo_driver'; |
||
49 | } |
||
50 | }; |
||
51 | } |
||
52 | |||
53 | public function createBarDriver() |
||
54 | { |
||
55 | return new class { |
||
56 | |||
57 | public function doAnything() |
||
58 | { |
||
59 | return 'do_anything_from_bar_driver'; |
||
60 | } |
||
61 | }; |
||
62 | } |
||
63 | |||
64 | public function getDefaultDriver() |
||
65 | { |
||
66 | return 'foo'; |
||
67 | } |
||
68 | }; |
||
69 | } |
||
70 | } |
||
71 |