1 | <?php |
||
14 | class AnswerPreCheckoutQuery extends BaseType |
||
15 | { |
||
16 | /** |
||
17 | * @var array |
||
18 | */ |
||
19 | static protected $requiredParams = ['pre_checkout_query_id', 'ok']; |
||
20 | |||
21 | /** |
||
22 | * @var array |
||
23 | */ |
||
24 | static protected $map = [ |
||
25 | 'pre_checkout_query_id' => true, |
||
26 | 'ok' => true, |
||
27 | 'error_message' => true, |
||
28 | ]; |
||
29 | |||
30 | /** |
||
31 | * Unique identifier for the query to be answered |
||
32 | * |
||
33 | * @var string |
||
34 | */ |
||
35 | protected $preCheckoutQueryId; |
||
36 | |||
37 | /** |
||
38 | * Specify True if everything is alright |
||
39 | * |
||
40 | * @var bool |
||
41 | */ |
||
42 | protected $ok; |
||
43 | |||
44 | /** |
||
45 | * Error message in human readable form that explains the reason for failure to proceed with the checkout |
||
46 | * |
||
47 | * @var string |
||
48 | */ |
||
49 | protected $errorMessage; |
||
50 | |||
51 | /** |
||
52 | * @author MY |
||
53 | * @return true |
||
54 | */ |
||
55 | public function getOk() |
||
59 | |||
60 | /** |
||
61 | * @author MY |
||
62 | * @param true $ok |
||
63 | */ |
||
64 | public function setOk($ok) |
||
68 | |||
69 | /** |
||
70 | * @author MY |
||
71 | * @return string |
||
72 | */ |
||
73 | public function getErrorMessage() |
||
77 | |||
78 | /** |
||
79 | * @author MY |
||
80 | * @param string $errorMessage |
||
81 | */ |
||
82 | public function setErrorMessage($errorMessage) |
||
86 | |||
87 | /** |
||
88 | * @author MY |
||
89 | * @return string |
||
90 | */ |
||
91 | public function getPreCheckoutQueryId() |
||
95 | |||
96 | /** |
||
97 | * @author MY |
||
98 | * @param string $preCheckoutQueryId |
||
99 | */ |
||
100 | public function setPreCheckoutQueryId($preCheckoutQueryId) |
||
104 | } |
||
105 |
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..