| Total Complexity | 4 |
| Total Lines | 23 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | class OutputWriter |
||
| 8 | { |
||
| 9 | /** @var callable */ |
||
| 10 | private $callback; |
||
| 11 | |||
| 12 | 182 | public function __construct(?callable $callback = null) |
|
| 20 | 182 | } |
|
| 21 | |||
| 22 | 16 | public function setCallback(callable $callback) : void |
|
| 23 | { |
||
| 24 | 16 | $this->callback = $callback; |
|
| 25 | 16 | } |
|
| 26 | |||
| 27 | 61 | public function write(string $message) : void |
|
| 30 | 61 | } |
|
| 31 | } |
||
| 32 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.