1 | <?php |
||
29 | class ClientSession |
||
30 | { |
||
31 | /** @var string */ |
||
32 | protected $host; |
||
33 | |||
34 | /** @var string */ |
||
35 | protected $catalog; |
||
36 | |||
37 | /** @var UuidInterface */ |
||
38 | protected $transactionId; |
||
39 | |||
40 | /** @var string */ |
||
41 | protected $schema = 'default'; |
||
42 | |||
43 | /** @var string */ |
||
44 | protected $header = []; |
||
45 | |||
46 | /** @var string */ |
||
47 | protected $user = 'presto'; |
||
48 | |||
49 | /** @var string */ |
||
50 | protected $source = PrestoHeaders::PRESTO_SOURCE_VALUE; |
||
51 | |||
52 | /** @var Property[] */ |
||
53 | protected $property = []; |
||
54 | |||
55 | /** @var PreparedStatement[] */ |
||
56 | protected $preparedStatement = []; |
||
57 | |||
58 | /** |
||
59 | * PrestoSession constructor. |
||
60 | * |
||
61 | * @param string $host |
||
62 | * @param string $catalog |
||
63 | */ |
||
64 | public function __construct(string $host, string $catalog) |
||
69 | |||
70 | /** |
||
71 | * @param string $schema |
||
72 | */ |
||
73 | public function setSchema(string $schema) |
||
77 | |||
78 | /** |
||
79 | * @param array $header |
||
80 | */ |
||
81 | public function setHeader(array $header) |
||
85 | |||
86 | /** |
||
87 | * @param string $user |
||
88 | */ |
||
89 | public function setUser(string $user) |
||
93 | |||
94 | /** |
||
95 | * @param string $source |
||
96 | */ |
||
97 | public function setSource(string $source) |
||
101 | |||
102 | /** |
||
103 | * @param UuidInterface $transactionId |
||
104 | */ |
||
105 | public function setTransactionId(UuidInterface $transactionId) |
||
109 | |||
110 | /** |
||
111 | * @param Property $property |
||
112 | */ |
||
113 | public function setProperty(Property $property) |
||
117 | |||
118 | /** |
||
119 | * @param PreparedStatement $preparedStatement |
||
120 | */ |
||
121 | public function setPreparedStatement(PreparedStatement $preparedStatement) |
||
125 | |||
126 | /** |
||
127 | * @return Property[] |
||
128 | */ |
||
129 | public function getProperty(): array |
||
133 | |||
134 | /** |
||
135 | * @return PreparedStatement[] |
||
136 | */ |
||
137 | public function getPreparedStatement(): array |
||
141 | |||
142 | /** |
||
143 | * @return string |
||
144 | */ |
||
145 | public function getHost(): string |
||
149 | |||
150 | /** |
||
151 | * @return string |
||
152 | */ |
||
153 | public function getCatalog(): string |
||
157 | |||
158 | /** |
||
159 | * @return array |
||
160 | */ |
||
161 | public function getHeader(): array |
||
165 | |||
166 | /** |
||
167 | * @return string |
||
168 | */ |
||
169 | public function getSchema(): string |
||
173 | |||
174 | /** |
||
175 | * @return string |
||
176 | */ |
||
177 | public function getUser(): string |
||
181 | |||
182 | /** |
||
183 | * @return string |
||
184 | */ |
||
185 | public function getSource(): string |
||
189 | |||
190 | /** |
||
191 | * @return UuidInterface|null |
||
192 | */ |
||
193 | public function getTransactionId() |
||
197 | } |
||
198 |
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..