1 | <?php |
||
7 | class LibCaldav_mock |
||
8 | { |
||
9 | /** |
||
10 | * @var Func_CalendarBackend_Ovi |
||
11 | */ |
||
12 | private $oviBackend; |
||
13 | |||
14 | /** |
||
15 | * @var Func_CalendarBackend_Caldav |
||
16 | */ |
||
17 | private $caldavBackend; |
||
18 | |||
19 | |||
20 | /** |
||
21 | * @var int |
||
22 | */ |
||
23 | private $oviUser; |
||
24 | |||
25 | /** |
||
26 | * @var int |
||
27 | */ |
||
28 | private $caldavUser; |
||
29 | |||
30 | |||
31 | /** |
||
32 | * @var Func_CalendarBackend_Ovi |
||
33 | */ |
||
34 | 3 | public function getOviBackend() |
|
42 | |||
43 | |||
44 | |||
45 | /** |
||
46 | * @return Func_CalendarBackend_Caldav |
||
47 | */ |
||
48 | 9 | public function getCaldavBackend() |
|
56 | |||
57 | /** |
||
58 | * @return int |
||
59 | */ |
||
60 | 3 | public function getOviUser() |
|
68 | |||
69 | |||
70 | /** |
||
71 | * Create a user in ovidentia |
||
72 | * and link to a caldav backend |
||
73 | * |
||
74 | * @return int |
||
75 | */ |
||
76 | 8 | public function getCaldavUser() |
|
100 | |||
101 | } |
This check looks for assignments to scalar types that may be of the wrong type.
To ensure the code behaves as expected, it may be a good idea to add an explicit type cast.