hanneskod /
readme-tester
| 1 | <?php |
||
| 2 | |||
| 3 | declare(strict_types=1); |
||
| 4 | |||
| 5 | namespace hanneskod\readmetester\Runner; |
||
| 6 | |||
| 7 | use hanneskod\readmetester\Example\ExampleObj; |
||
| 8 | |||
| 9 | final class OutputOutcome implements OutcomeInterface |
||
| 10 | { |
||
| 11 | use OutcomeDefaultsTrait; |
||
| 12 | |||
| 13 | public function __construct( |
||
| 14 | private ExampleObj $example, |
||
|
0 ignored issues
–
show
Bug
introduced
by
Loading history...
|
|||
| 15 | private string $content, |
||
| 16 | ) {} |
||
| 17 | |||
| 18 | public function isOutput(): bool |
||
| 19 | { |
||
| 20 | return true; |
||
| 21 | } |
||
| 22 | |||
| 23 | public function mustBeHandled(): bool |
||
| 24 | { |
||
| 25 | return true; |
||
| 26 | } |
||
| 27 | |||
| 28 | public function getContent(): string |
||
| 29 | { |
||
| 30 | return $this->content; |
||
| 31 | } |
||
| 32 | |||
| 33 | public function getDescription(): string |
||
| 34 | { |
||
| 35 | return "output '{$this->getContent()}'"; |
||
| 36 | } |
||
| 37 | } |
||
| 38 |