Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
Total | |
100.00% |
1 / 1 |
|
100.00% |
5 / 5 |
CRAP | |
100.00% |
9 / 9 |
ShoutRequestDto | |
100.00% |
1 / 1 |
|
100.00% |
5 / 5 |
5 | |
100.00% |
9 / 9 |
__construct | |
100.00% |
1 / 1 |
1 | |
100.00% |
3 / 3 |
|||
getAuthor | |
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
|||
setAuthor | |
100.00% |
1 / 1 |
1 | |
100.00% |
2 / 2 |
|||
getLimit | |
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
|||
setLimit | |
100.00% |
1 / 1 |
1 | |
100.00% |
2 / 2 |
<?php | |
declare(strict_types=1); | |
namespace App\UI\HTTP\Dto; | |
final class ShoutRequestDto | |
{ | |
private string $author; | |
private int $limit; | |
public function __construct() | |
{ | |
$this->author = ''; | |
$this->limit = 0; | |
} | |
public function getAuthor(): string | |
{ | |
return $this->author; | |
} | |
public function setAuthor(string $author): void | |
{ | |
$this->author = $author; | |
} | |
public function getLimit(): int | |
{ | |
return $this->limit; | |
} | |
public function setLimit(int $limit): void | |
{ | |
$this->limit = $limit; | |
} | |
} |