Code Coverage |
||||||||||||||||
Lines |
Branches |
Paths |
Functions and Methods |
Classes and Traits |
||||||||||||
| Total | |
100.00% |
4 / 4 |
|
100.00% |
3 / 3 |
|
100.00% |
3 / 3 |
|
100.00% |
3 / 3 |
CRAP | |
100.00% |
1 / 1 |
| UpdateAvatarRequest | |
100.00% |
4 / 4 |
|
100.00% |
3 / 3 |
|
100.00% |
3 / 3 |
|
100.00% |
3 / 3 |
3 | |
100.00% |
1 / 1 |
| __construct | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| getContents | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| getFilename | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| 1 | <?php |
| 2 | |
| 3 | namespace App\User\Infrastructure\Dto; |
| 4 | |
| 5 | use App\Auth\Application\Command\RegistrationCommand; |
| 6 | use App\Shared\Domain\Exception\ErrorCode; |
| 7 | use Symfony\Component\ObjectMapper\Attribute\Map; |
| 8 | use Symfony\Component\Validator\Constraints as Assert; |
| 9 | |
| 10 | readonly class UpdateAvatarRequest |
| 11 | { |
| 12 | private readonly string $contents; |
| 13 | |
| 14 | private readonly string $filename; |
| 15 | |
| 16 | public function __construct( |
| 17 | string $contents, |
| 18 | string $filename, |
| 19 | ) { |
| 20 | $this->contents = $contents; |
| 21 | $this->filename = $filename; |
| 22 | } |
| 23 | |
| 24 | public function getContents(): string |
| 25 | { |
| 26 | return $this->contents; |
| 27 | } |
| 28 | public function getFilename(): string |
| 29 | { |
| 30 | return $this->filename; |
| 31 | } |
| 32 | } |