1 | <?php |
||
5 | abstract class Supervisor |
||
6 | { |
||
7 | /** |
||
8 | * Supervisor? |
||
9 | * |
||
10 | * @var bool |
||
11 | */ |
||
12 | protected $isSupervisor; |
||
13 | |||
14 | /** |
||
15 | * Parent. Only used for supervisor. |
||
16 | * |
||
17 | * @var \PhpOffice\PhpSpreadsheet\Style |
||
18 | */ |
||
19 | protected $parent; |
||
20 | |||
21 | /** |
||
22 | * Create a new Supervisor. |
||
23 | * |
||
24 | * @param bool $isSupervisor Flag indicating if this is a supervisor or not |
||
25 | * Leave this value at default unless you understand exactly what |
||
26 | * its ramifications are |
||
27 | */ |
||
28 | public function __construct($isSupervisor = false) |
||
33 | |||
34 | /** |
||
35 | * Bind parent. Only used for supervisor. |
||
36 | * |
||
37 | * @param Style $parent |
||
38 | * @param null|mixed $parentPropertyName |
||
39 | * |
||
40 | * @return Supervisor |
||
41 | */ |
||
42 | public function bindParent($parent, $parentPropertyName = null) |
||
48 | |||
49 | /** |
||
50 | * Is this a supervisor or a cell style component? |
||
51 | * |
||
52 | * @return bool |
||
53 | */ |
||
54 | public function getIsSupervisor() |
||
58 | |||
59 | /** |
||
60 | * Get the currently active sheet. Only used for supervisor. |
||
61 | * |
||
62 | * @return \PhpOffice\PhpSpreadsheet\Worksheet |
||
63 | */ |
||
64 | public function getActiveSheet() |
||
68 | |||
69 | /** |
||
70 | * Get the currently active cell coordinate in currently active sheet. |
||
71 | * Only used for supervisor. |
||
72 | * |
||
73 | * @return string E.g. 'A1' |
||
74 | */ |
||
75 | public function getSelectedCells() |
||
79 | |||
80 | /** |
||
81 | * Get the currently active cell coordinate in currently active sheet. |
||
82 | * Only used for supervisor. |
||
83 | * |
||
84 | * @return string E.g. 'A1' |
||
85 | */ |
||
86 | public function getActiveCell() |
||
90 | |||
91 | /** |
||
92 | * Implement PHP __clone to create a deep clone, not just a shallow copy. |
||
93 | */ |
||
94 | public function __clone() |
||
105 | } |
||
106 |
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..