1 | <?php |
||
27 | class Row |
||
28 | { |
||
29 | /** |
||
30 | * \PhpOffice\PhpSpreadsheet\Worksheet. |
||
31 | * |
||
32 | * @var \PhpOffice\PhpSpreadsheet\Worksheet |
||
33 | */ |
||
34 | private $worksheet; |
||
35 | |||
36 | /** |
||
37 | * Row index. |
||
38 | * |
||
39 | * @var int |
||
40 | */ |
||
41 | private $rowIndex = 0; |
||
42 | |||
43 | /** |
||
44 | * Create a new row. |
||
45 | * |
||
46 | * @param \PhpOffice\PhpSpreadsheet\Worksheet $parent |
||
|
|||
47 | * @param int $rowIndex |
||
48 | */ |
||
49 | 7 | public function __construct(\PhpOffice\PhpSpreadsheet\Worksheet $worksheet = null, $rowIndex = 1) |
|
50 | { |
||
51 | // Set parent and row index |
||
52 | 7 | $this->worksheet = $worksheet; |
|
53 | 7 | $this->rowIndex = $rowIndex; |
|
54 | 7 | } |
|
55 | |||
56 | /** |
||
57 | * Destructor. |
||
58 | */ |
||
59 | 7 | public function __destruct() |
|
63 | |||
64 | /** |
||
65 | * Get row index. |
||
66 | * |
||
67 | * @return int |
||
68 | */ |
||
69 | 4 | public function getRowIndex() |
|
73 | |||
74 | /** |
||
75 | * Get cell iterator. |
||
76 | * |
||
77 | * @param string $startColumn The column address at which to start iterating |
||
78 | * @param string $endColumn Optionally, the column address at which to stop iterating |
||
79 | * |
||
80 | * @return RowCellIterator |
||
81 | */ |
||
82 | 2 | public function getCellIterator($startColumn = 'A', $endColumn = null) |
|
86 | |||
87 | /** |
||
88 | * Returns bound worksheet. |
||
89 | * |
||
90 | * @return Worksheet |
||
91 | */ |
||
92 | public function getWorksheet() |
||
96 | } |
||
97 |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter
$italy
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was removed, but the annotation was not.