Code Coverage
 
Lines
Branches
Paths
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
4 / 4
100.00% covered (success)
100.00%
3 / 3
100.00% covered (success)
100.00%
3 / 3
100.00% covered (success)
100.00%
3 / 3
CRAP
100.00% covered (success)
100.00%
1 / 1
UpdateAvatarRequest
100.00% covered (success)
100.00%
4 / 4
100.00% covered (success)
100.00%
3 / 3
100.00% covered (success)
100.00%
3 / 3
100.00% covered (success)
100.00%
3 / 3
3
100.00% covered (success)
100.00%
1 / 1
 __construct
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getContents
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getFilename
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
1<?php
2
3namespace App\User\Infrastructure\Dto;
4
5use App\Auth\Application\Command\RegistrationCommand;
6use App\Shared\Domain\Exception\ErrorCode;
7use Symfony\Component\ObjectMapper\Attribute\Map;
8use Symfony\Component\Validator\Constraints as Assert;
9
10readonly 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}

Branches

Below are the source code lines that represent each code branch as identified by Xdebug. Please note a branch is not necessarily coterminous with a line, a line may contain multiple branches and therefore show up more than once. Please also be aware that some branches may be implicit rather than explicit, e.g. an if statement always has an else as part of its logical flow even if you didn't write one.

UpdateAvatarRequest->__construct
16    public function __construct(
17        string $contents,
18        string $filename,
19    ) {
20        $this->contents = $contents;
21        $this->filename = $filename;
22    }
UpdateAvatarRequest->getContents
26        return $this->contents;
27    }
UpdateAvatarRequest->getFilename
30        return $this->filename;
31    }
{main}
3namespace App\User\Infrastructure\Dto;
4
5use App\Auth\Application\Command\RegistrationCommand;
6use App\Shared\Domain\Exception\ErrorCode;
7use Symfony\Component\ObjectMapper\Attribute\Map;
8use Symfony\Component\Validator\Constraints as Assert;
9
10readonly 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    }