| 1 | <?php |
||
| 10 | class TableBuilder extends TestHelper |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var Reader |
||
| 14 | */ |
||
| 15 | private $reader; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * Constructor. |
||
| 19 | * |
||
| 20 | * @param Test $test |
||
| 21 | * @param Reader $reader |
||
|
|
|||
| 22 | */ |
||
| 23 | 3 | public function __construct(Test $test, Reader $reader = null) |
|
| 29 | |||
| 30 | /** |
||
| 31 | * @return Table[] |
||
| 32 | */ |
||
| 33 | 3 | public function getTables() |
|
| 43 | |||
| 44 | /** |
||
| 45 | * @return array |
||
| 46 | */ |
||
| 47 | 3 | private function getAnnotations() |
|
| 51 | |||
| 52 | /** |
||
| 53 | * @param string $tableFullName |
||
| 54 | * @return Table |
||
| 55 | */ |
||
| 56 | 3 | private function createTable($tableFullName) |
|
| 61 | } |
||
| 62 |
This check looks for
@paramannotations 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.