1 | <?php |
||
23 | class TableFactory implements TableFactoryInterface |
||
24 | { |
||
25 | /** |
||
26 | * @var TableRegistry $registry |
||
27 | */ |
||
28 | private $registry; |
||
29 | |||
30 | /** |
||
31 | * @var TableRecognizer $tableRecognizer |
||
32 | */ |
||
33 | private $tableRecognizer; |
||
34 | |||
35 | /** |
||
36 | * @param TableRegistry $registry |
||
|
|||
37 | */ |
||
38 | 30 | public function __construct(TableRegistry $registry = null) |
|
43 | |||
44 | /** |
||
45 | * @inheritdoc |
||
46 | */ |
||
47 | 28 | public function createNewTable($table, AbstractBuilder $qb) |
|
69 | |||
70 | /** |
||
71 | * @param string $requestedTable |
||
72 | * @param string $tableClass |
||
73 | * @param AbstractBuilder $qb |
||
74 | * |
||
75 | * @return mixed |
||
76 | */ |
||
77 | 28 | private function doCreate($requestedTable, $tableClass, AbstractBuilder $qb) |
|
87 | |||
88 | /** |
||
89 | * @param AbstractBuilder $subQb |
||
90 | * @param AbstractBuilder $qb |
||
91 | * |
||
92 | * @return SubQueryTable |
||
93 | */ |
||
94 | 1 | private function createSubQueryTable(AbstractBuilder $subQb, AbstractBuilder $qb) |
|
98 | } |
This check looks for
@param
annotations where the type inferred by our type inference engine differs from the declared type.It makes a suggestion as to what type it considers more descriptive.
Most often this is a case of a parameter that can be null in addition to its declared types.