| Total Complexity | 2 |
| Total Lines | 16 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | final readonly class TestWarning |
||
|
|
|||
| 12 | { |
||
| 13 | use \Nette\SmartObject; |
||
| 14 | |||
| 15 | public string $name; |
||
| 16 | public string $text; |
||
| 17 | |||
| 18 | 1 | public function __construct(string $name, string $text) |
|
| 19 | { |
||
| 20 | 1 | $this->name = $name; |
|
| 21 | 1 | $this->text = $text; |
|
| 22 | } |
||
| 23 | |||
| 24 | 1 | public function __toString(): string |
|
| 25 | { |
||
| 26 | 1 | return "$this->name passed with warning: $this->text"; |
|
| 27 | } |
||
| 29 |