(
private string $name,
private int $score = 0
)
| 1 | <?php |
| 2 | class User { |
| 3 | public function __construct( |
| 4 | private string $name, |
| 5 | private int $score = 0 |
| 6 | ) {} |
| 7 | |
| 8 | public function addScore(int $pts): void { |
| 9 | $this->score += $pts; |
nothing calls this directly
no outgoing calls
no test coverage detected