1 | <?php |
||
11 | class Column |
||
12 | { |
||
13 | |||
14 | /** |
||
15 | * Colunas dos bancos |
||
16 | * |
||
17 | * @author Pedro Alarcao <[email protected]> |
||
18 | */ |
||
19 | public function __construct () |
||
22 | |||
23 | /** |
||
24 | * @var string |
||
25 | */ |
||
26 | private $name; |
||
27 | |||
28 | /** |
||
29 | * @var \Classes\Db\Constrant[] |
||
30 | */ |
||
31 | private $primarykey; |
||
32 | |||
33 | /** |
||
34 | * @var string |
||
35 | */ |
||
36 | private $type; |
||
37 | |||
38 | /** |
||
39 | * @var string |
||
40 | */ |
||
41 | private $comment; |
||
42 | |||
43 | /** |
||
44 | * @var boolean |
||
45 | */ |
||
46 | private $nullable; |
||
47 | |||
48 | /** |
||
49 | * @var int |
||
50 | */ |
||
51 | private $max_length; |
||
52 | |||
53 | /** |
||
54 | * @var \Classes\Db\Constrant[] |
||
55 | */ |
||
56 | private $dependences; |
||
57 | |||
58 | /** |
||
59 | * @var \Classes\Db\Constrant |
||
60 | */ |
||
61 | private $refForeingkey; |
||
62 | |||
63 | /** |
||
64 | * @type string |
||
65 | */ |
||
66 | private $sequence; |
||
67 | |||
68 | /** |
||
69 | * @return string |
||
70 | */ |
||
71 | public function getName () |
||
75 | |||
76 | /** |
||
77 | * popula o |
||
78 | * |
||
79 | * @param $array |
||
80 | */ |
||
81 | public function populate ( $array ) |
||
90 | |||
91 | /** |
||
92 | * @return boolean |
||
93 | */ |
||
94 | public function isPrimaryKey () |
||
98 | |||
99 | /** |
||
100 | * @return boolean |
||
101 | */ |
||
102 | public function isForeingkey () |
||
106 | |||
107 | /** |
||
108 | * @return boolean |
||
109 | */ |
||
110 | public function hasDependence () |
||
114 | |||
115 | /** |
||
116 | * @return string |
||
117 | */ |
||
118 | public function getType () |
||
122 | |||
123 | /** |
||
124 | * @return string |
||
125 | */ |
||
126 | public function getComment () |
||
130 | |||
131 | /** |
||
132 | * @param string $comment |
||
133 | */ |
||
134 | public function setComment ( $comment ) |
||
140 | |||
141 | /** |
||
142 | * @param \Classes\Db\Constrant $primarykey |
||
143 | */ |
||
144 | public function setPrimaryKey ( Constrant $primarykey ) |
||
150 | |||
151 | /** |
||
152 | * @param \Classes\Db\Constrant $dependece |
||
153 | */ |
||
154 | public function addDependece ( Constrant $dependece ) |
||
160 | |||
161 | /** |
||
162 | * @param $constraint_name |
||
163 | * @param $table_name |
||
164 | * @param $column_name |
||
165 | * |
||
166 | * @return $this |
||
167 | */ |
||
168 | public function createDependece ( $constraint_name , $table_name , $column_name , $schema = null ) |
||
184 | |||
185 | /** |
||
186 | * @param \Classes\Db\Constrant $reference |
||
187 | */ |
||
188 | public function addRefFk ( Constrant $reference ) |
||
194 | |||
195 | /** |
||
196 | * retorna as foreingkeys |
||
197 | * |
||
198 | * @return \Classes\Db\Constrant |
||
199 | */ |
||
200 | public function getFks () |
||
204 | |||
205 | /** |
||
206 | * Retorna as dependencias da tabela |
||
207 | * |
||
208 | * @return \Classes\Db\Constrant[] |
||
209 | */ |
||
210 | public function getDependences () |
||
214 | |||
215 | /** |
||
216 | * @return bool |
||
217 | */ |
||
218 | public function hasDependences () |
||
222 | |||
223 | /** |
||
224 | * Retorna a constrant da primarykey da tabela |
||
225 | * |
||
226 | * @return \Classes\Db\Constrant[] |
||
227 | */ |
||
228 | public function getPrimaryKey () |
||
232 | |||
233 | /** |
||
234 | * |
||
235 | */ |
||
236 | public function getMaxLength () |
||
240 | |||
241 | /** |
||
242 | * @return bool |
||
243 | */ |
||
244 | public function hasSequence () |
||
248 | |||
249 | /** |
||
250 | * @return string |
||
251 | */ |
||
252 | public function getSequence () |
||
256 | |||
257 | /** |
||
258 | * @param string $sequence |
||
259 | */ |
||
260 | public function setSequence ( $sequence ) |
||
264 | |||
265 | /** |
||
266 | * @return boolean |
||
267 | */ |
||
268 | public function isNullable () |
||
272 | |||
273 | } |
||
274 |
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..