| 1 | <?php |
||
| 9 | class DDLTable |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var string |
||
| 13 | */ |
||
| 14 | private $name; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @var string |
||
| 18 | */ |
||
| 19 | private $comment; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @var array|DDLTableColumn[] |
||
| 23 | */ |
||
| 24 | private $columnDefinitions; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * DDLTable constructor. |
||
| 28 | * @param string $tableName |
||
|
|
|||
| 29 | * @param string $tableComment |
||
| 30 | * @param DDLTableColumn[] $columnDefinitions |
||
| 31 | */ |
||
| 32 | public function __construct($tableName = null, $tableComment = null, array $columnDefinitions = []) |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @return string |
||
| 41 | */ |
||
| 42 | public function getName() |
||
| 46 | |||
| 47 | /** |
||
| 48 | * @param string $name |
||
| 49 | */ |
||
| 50 | public function setName($name) |
||
| 54 | |||
| 55 | /** |
||
| 56 | * @return string |
||
| 57 | */ |
||
| 58 | public function getComment() |
||
| 62 | |||
| 63 | /** |
||
| 64 | * @param string $comment |
||
| 65 | */ |
||
| 66 | public function setComment($comment) |
||
| 70 | |||
| 71 | /** |
||
| 72 | * @return array|DDLTableColumn[] |
||
| 73 | */ |
||
| 74 | public function getColumns() |
||
| 78 | |||
| 79 | /** |
||
| 80 | * @param array|DDLTableColumn[] $columnDefinitions |
||
| 81 | */ |
||
| 82 | public function setColumns($columnDefinitions) |
||
| 86 | } |
||
| 87 |
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.