1 | <?php |
||
26 | class Hook |
||
27 | { |
||
28 | |||
29 | /** |
||
30 | * @var \SimpleXMLElement |
||
31 | */ |
||
32 | protected $rawXml; |
||
33 | |||
34 | /** |
||
35 | * @var string |
||
36 | */ |
||
37 | private $hookId; |
||
38 | |||
39 | /** |
||
40 | * @var string |
||
41 | */ |
||
42 | private $meetingId; |
||
43 | |||
44 | /** |
||
45 | * @var string |
||
46 | */ |
||
47 | private $callbackUrl; |
||
48 | |||
49 | /** |
||
50 | * @var bool |
||
51 | */ |
||
52 | private $permanentHook; |
||
53 | |||
54 | /** |
||
55 | * @var bool |
||
56 | */ |
||
57 | private $rawData; |
||
58 | |||
59 | /** |
||
60 | * Meeting constructor. |
||
61 | * @param $xml \SimpleXMLElement |
||
62 | */ |
||
63 | public function __construct($xml) |
||
72 | |||
73 | /** |
||
74 | * @return string |
||
75 | */ |
||
76 | public function getHookId() |
||
80 | |||
81 | /** |
||
82 | * @return string |
||
83 | */ |
||
84 | public function getMeetingId() |
||
88 | |||
89 | /** |
||
90 | * @return string |
||
91 | */ |
||
92 | public function getCallbackUrl() |
||
96 | |||
97 | /** |
||
98 | * @return bool |
||
99 | */ |
||
100 | public function isPermanentHook() |
||
104 | |||
105 | /** |
||
106 | * @return bool |
||
107 | */ |
||
108 | public function hasRawData() |
||
112 | } |
||
113 |
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.