| 1 | <?php |
||
| 9 | class Writer implements Contract |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * Holds a instance of config. |
||
| 13 | * |
||
| 14 | * @var Config |
||
| 15 | */ |
||
| 16 | private $config; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * Holds a instance of SymfonyStyle. |
||
| 20 | * |
||
| 21 | * @var Config |
||
| 22 | */ |
||
| 23 | private $io; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Holds the headers. |
||
| 27 | * |
||
| 28 | * @var Config |
||
| 29 | */ |
||
| 30 | private $headers; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Holds the rows. |
||
| 34 | * |
||
| 35 | * @var Config |
||
| 36 | */ |
||
| 37 | private $rows; |
||
| 38 | |||
| 39 | /** |
||
| 40 | * {@inheritdoc} |
||
| 41 | */ |
||
| 42 | public function __construct(Config $config, StyleInterface $io) |
||
| 48 | |||
| 49 | /** |
||
| 50 | * {@inheritdoc} |
||
| 51 | */ |
||
| 52 | public function write() |
||
| 58 | |||
| 59 | /** |
||
| 60 | * {@inheritdoc} |
||
| 61 | */ |
||
| 62 | public function setRows(array $rows) |
||
| 68 | |||
| 69 | /** |
||
| 70 | * {@inheritdoc} |
||
| 71 | */ |
||
| 72 | public function getRows() |
||
| 76 | |||
| 77 | /** |
||
| 78 | * Configures the table instance with |
||
| 79 | * the headers provided by the config list elements. |
||
| 80 | * |
||
| 81 | * @return $this |
||
| 82 | */ |
||
| 83 | private function setHeaders() |
||
| 91 | } |
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..