Code Coverage
 
Lines
Branches
Paths
Functions and Methods
Classes and Traits
Total
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
CRAP
100.00% covered (success)
100.00%
1 / 1
StoredFileDto
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
100.00% covered (success)
100.00%
1 / 1
 __construct
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\Shared\Infrastructure\Dto;
4
5use App\Shared\Domain\Model\StoredFile;
6use App\Shared\Infrastructure\Service\StoredFileDtoTransformer;
7use App\Shared\Infrastructure\Service\StoredFileUrlTransformer;
8use Symfony\Component\ObjectMapper\Attribute\Map;
9
10/**
11 * @author Wilhelm Zwertvaegher
12 */
13#[Map(source: StoredFile::class)]
14class StoredFileDto
15{
16
17    #[Map(source: 'path', transform: StoredFileUrlTransformer::class)]
18    public string $url;
19
20    public function __construct(
21        public string $filename,
22        public string $extension
23    ) {
24    }
25}

Paths

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.

StoredFileDto->__construct
20    public function __construct(
21        public string $filename,
22        public string $extension
23    ) {
24    }
{main}
3namespace App\Shared\Infrastructure\Dto;
4
5use App\Shared\Domain\Model\StoredFile;
6use App\Shared\Infrastructure\Service\StoredFileDtoTransformer;
7use App\Shared\Infrastructure\Service\StoredFileUrlTransformer;
8use Symfony\Component\ObjectMapper\Attribute\Map;
9
10/**
11 * @author Wilhelm Zwertvaegher
12 */
13#[Map(source: StoredFile::class)]
14class StoredFileDto
15{
16
17    #[Map(source: 'path', transform: StoredFileUrlTransformer::class)]
18    public string $url;
19
20    public function __construct(
21        public string $filename,
22        public string $extension
23    ) {
24    }