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 | } |
Below are the source code lines that represent each code path as identified by Xdebug. Please note a path is not
necessarily coterminous with a line, a line may contain multiple paths and therefore show up more than once.
Please also be aware that some paths may include implicit rather than explicit branches, e.g. an if statement
always has an else as part of its logical flow even if you didn't write one.
| 16 | public function __construct( |
| 17 | string $contents, |
| 18 | string $filename, |
| 19 | ) { |
| 20 | $this->contents = $contents; |
| 21 | $this->filename = $filename; |
| 22 | } |
| 26 | return $this->contents; |
| 27 | } |
| 30 | return $this->filename; |
| 31 | } |
| 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 | } |