Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
1 / 1 |
| ReputationReward | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
| __construct | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace AqwSocketClient\Objects\Quest; |
| 6 | |
| 7 | use AqwSocketClient\Objects\Faction; |
| 8 | use Psl; |
| 9 | |
| 10 | final readonly class ReputationReward implements QuestRewardInterface |
| 11 | { |
| 12 | public function __construct( |
| 13 | public readonly int $amount, |
| 14 | public readonly Faction $faction, |
| 15 | ) { |
| 16 | Psl\invariant($this->amount >= 0, 'Reputation amount must be non-negative, got %d.', $this->amount); |
| 17 | } |
| 18 | } |