1 | <?php |
||
21 | class Writer implements Contract |
||
22 | { |
||
23 | /** |
||
24 | * Holds a instance of config. |
||
25 | * |
||
26 | * @var Config |
||
27 | */ |
||
28 | private $config; |
||
29 | |||
30 | /** |
||
31 | * Holds a instance of SymfonyStyle. |
||
32 | * |
||
33 | * @var Config |
||
34 | */ |
||
35 | private $io; |
||
36 | |||
37 | /** |
||
38 | * Holds the headers. |
||
39 | * |
||
40 | * @var Config |
||
41 | */ |
||
42 | private $headers; |
||
43 | |||
44 | /** |
||
45 | * Holds the rows. |
||
46 | * |
||
47 | * @var Config |
||
48 | */ |
||
49 | private $rows; |
||
50 | |||
51 | /** |
||
52 | * {@inheritdoc} |
||
53 | */ |
||
54 | public function __construct(Config $config, StyleInterface $io) |
||
60 | |||
61 | /** |
||
62 | * {@inheritdoc} |
||
63 | */ |
||
64 | public function write() |
||
70 | |||
71 | /** |
||
72 | * {@inheritdoc} |
||
73 | */ |
||
74 | public function setRows(array $rows) |
||
80 | |||
81 | /** |
||
82 | * {@inheritdoc} |
||
83 | */ |
||
84 | public function getRows() |
||
88 | |||
89 | /** |
||
90 | * Configures the table instance with |
||
91 | * the headers provided by the config list elements. |
||
92 | * |
||
93 | * @return $this |
||
94 | */ |
||
95 | private function setHeaders() |
||
103 | } |
||
104 |
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..