1 | <?php |
||
18 | class Dialog |
||
19 | { |
||
20 | /** |
||
21 | * Javascript confirm function |
||
22 | * |
||
23 | * @var Jaxon\Dialog\Interfaces\Confirm |
||
24 | */ |
||
25 | private $xConfirm; |
||
26 | |||
27 | /** |
||
28 | * Default javascript confirm function |
||
29 | * |
||
30 | * @var Jaxon\Dialog\Confirm |
||
31 | */ |
||
32 | private $xDefaultConfirm; |
||
33 | |||
34 | /** |
||
35 | * Javascript alert function |
||
36 | * |
||
37 | * @var Jaxon\Dialog\Interfaces\Alert |
||
38 | */ |
||
39 | private $xAlert; |
||
40 | |||
41 | /** |
||
42 | * Default javascript alert function |
||
43 | * |
||
44 | * @var Jaxon\Dialog\Alert |
||
45 | */ |
||
46 | private $xDefaultAlert; |
||
47 | |||
48 | /** |
||
49 | * The constructor |
||
50 | */ |
||
51 | public function __construct() |
||
61 | |||
62 | /** |
||
63 | * Set the javascript confirm function |
||
64 | * |
||
65 | * @param Jaxon\Dialog\Interfaces\Confirm $xConfirm The javascript confirm function |
||
66 | * |
||
67 | * @return void |
||
68 | */ |
||
69 | public function setConfirm(Interfaces\Confirm $xConfirm) |
||
73 | |||
74 | /** |
||
75 | * Get the javascript confirm function |
||
76 | * |
||
77 | * @return Jaxon\Dialog\Interfaces\Confirm |
||
78 | */ |
||
79 | public function getConfirm() |
||
83 | |||
84 | /** |
||
85 | * Get the default javascript confirm function |
||
86 | * |
||
87 | * @return Jaxon\Dialog\Confirm |
||
88 | */ |
||
89 | public function getDefaultConfirm() |
||
93 | |||
94 | /** |
||
95 | * Set the javascript alert function |
||
96 | * |
||
97 | * @param Jaxon\Dialog\Interfaces\Alert $xAlert The javascript alert function |
||
98 | * |
||
99 | * @return void |
||
100 | */ |
||
101 | public function setAlert(Interfaces\Alert $xAlert) |
||
105 | |||
106 | /** |
||
107 | * Get the javascript alert function |
||
108 | * |
||
109 | * @return Jaxon\Dialog\Interfaces\Alert |
||
110 | */ |
||
111 | public function getAlert() |
||
115 | |||
116 | /** |
||
117 | * Get the default javascript alert function |
||
118 | * |
||
119 | * @return Jaxon\Dialog\Alert |
||
120 | */ |
||
121 | public function getDefaultAlert() |
||
125 | |||
126 | /** |
||
127 | * Get the script which makes a call only if the user answers yes to the given question |
||
128 | * |
||
129 | * @return string |
||
130 | */ |
||
131 | public function confirm($question, $yesScript, $noScript) |
||
135 | |||
136 | /** |
||
137 | * Print a success message. |
||
138 | * |
||
139 | * It is a function of the Jaxon\Dialog\Interfaces\Alert interface. |
||
140 | * |
||
141 | * @param string $message The text of the message |
||
142 | * @param string|null $title The title of the message |
||
143 | * |
||
144 | * @return string|void |
||
145 | */ |
||
146 | public function success($message, $title = null) |
||
150 | |||
151 | /** |
||
152 | * Print an information message. |
||
153 | * |
||
154 | * It is a function of the Jaxon\Dialog\Interfaces\Alert interface. |
||
155 | * |
||
156 | * @param string $message The text of the message |
||
157 | * @param string|null $title The title of the message |
||
158 | * |
||
159 | * @return string|void |
||
160 | */ |
||
161 | public function info($message, $title = null) |
||
165 | |||
166 | /** |
||
167 | * Print a warning message. |
||
168 | * |
||
169 | * It is a function of the Jaxon\Dialog\Interfaces\Alert interface. |
||
170 | * |
||
171 | * @param string $message The text of the message |
||
172 | * @param string|null $title The title of the message |
||
173 | * |
||
174 | * @return string|void |
||
175 | */ |
||
176 | public function warning($message, $title = null) |
||
180 | |||
181 | /** |
||
182 | * Print an error message. |
||
183 | * |
||
184 | * It is a function of the Jaxon\Dialog\Interfaces\Alert interface. |
||
185 | * |
||
186 | * @param string $message The text of the message |
||
187 | * @param string|null $title The title of the message |
||
188 | * |
||
189 | * @return string|void |
||
190 | */ |
||
191 | public function error($message, $title = null) |
||
195 | } |
||
196 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..