| Total Complexity | 5 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 8 | final class SetBan implements Command |
||
| 9 | { |
||
| 10 | private const METHOD = 'setban'; |
||
| 11 | private $ip; |
||
| 12 | private $command; |
||
| 13 | private $banTime; |
||
| 14 | private $absolute; |
||
| 15 | |||
| 16 | |||
| 17 | 4 | public function __construct(string $ip, CommandEnum $command, ?int $banTime, ?bool $absolute) |
|
| 18 | { |
||
| 19 | 4 | $this->ip = $ip; |
|
| 20 | 4 | $this->command = $command; |
|
| 21 | 4 | $this->banTime = $banTime; |
|
| 22 | 4 | $this->absolute = $absolute; |
|
| 23 | 4 | } |
|
| 24 | |||
| 25 | 4 | public function jsonSerialize(): object |
|
| 35 | ) |
||
| 36 | ]; |
||
| 39 |