Code Coverage
 
Lines
Branches
Paths
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
2 / 2
CRAP
100.00% covered (success)
100.00%
1 / 1
Set
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
2 / 2
2
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
 getId
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\CollectionManagement\Domain\Model\Local;
4
5use App\CollectionManagement\Domain\Model\BaseSet;
6use App\Shared\Domain\Model\EntityId;
7
8/**
9 * @author Wilhelm Zwertvaegher
10 * A BaseSet that exists locally (i.e. is saved locally)
11 */
12
13final readonly class Set extends BaseSet
14{
15    /**
16     * @param EntityId $id
17     * @param string $externalId
18     * @param string $legoId
19     * @param string $name
20     * @param int $partCount
21     * @param string $imagePath
22     * @param int $productionYear
23     */
24    public function __construct(
25        private EntityId $id,
26        string           $externalId,
27        string           $legoId,
28        string           $name,
29        int              $partCount,
30        string           $imagePath,
31        int              $productionYear,
32    ) {
33        parent::__construct($externalId, $legoId, $name, $partCount, $imagePath, $productionYear);
34    }
35
36    /**
37     * @return EntityId
38     */
39    public function getId(): EntityId
40    {
41        return $this->id;
42    }
43}

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.

Set->__construct
24    public function __construct(
25        private EntityId $id,
26        string           $externalId,
27        string           $legoId,
28        string           $name,
29        int              $partCount,
30        string           $imagePath,
31        int              $productionYear,
32    ) {
33        parent::__construct($externalId, $legoId, $name, $partCount, $imagePath, $productionYear);
34    }
Set->getId
41        return $this->id;
42    }
{main}
3namespace App\CollectionManagement\Domain\Model\Local;
4
5use App\CollectionManagement\Domain\Model\BaseSet;
6use App\Shared\Domain\Model\EntityId;
7
8/**
9 * @author Wilhelm Zwertvaegher
10 * A BaseSet that exists locally (i.e. is saved locally)
11 */
12
13final readonly class Set extends BaseSet
14{
15    /**
16     * @param EntityId $id
17     * @param string $externalId
18     * @param string $legoId
19     * @param string $name
20     * @param int $partCount
21     * @param string $imagePath
22     * @param int $productionYear
23     */
24    public function __construct(
25        private EntityId $id,
26        string           $externalId,
27        string           $legoId,
28        string           $name,
29        int              $partCount,
30        string           $imagePath,
31        int              $productionYear,
32    ) {
33        parent::__construct($externalId, $legoId, $name, $partCount, $imagePath, $productionYear);
34    }
35
36    /**
37     * @return EntityId
38     */
39    public function getId(): EntityId
40    {
41        return $this->id;
42    }