Code Coverage
 
Lines
Branches
Paths
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
3 / 3
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
EnrichedSet
100.00% covered (success)
100.00%
3 / 3
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%
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
 getSet
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
 getUserSet
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;
4
5use App\CollectionManagement\Domain\Model\Local\UserSet;
6
7final readonly class EnrichedSet
8{
9    public function __construct(private BaseSet $set, private ?UserSet $userSet = null)
10    {}
11
12    public function getSet(): BaseSet
13    {
14        return $this->set;
15    }
16
17    public function getUserSet(): ?UserSet
18    {
19        return $this->userSet;
20    }
21}

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.

EnrichedSet->__construct
9    public function __construct(private BaseSet $set, private ?UserSet $userSet = null)
10    {}
EnrichedSet->getSet
14        return $this->set;
15    }
EnrichedSet->getUserSet
19        return $this->userSet;
20    }
{main}
3namespace App\CollectionManagement\Domain\Model;
4
5use App\CollectionManagement\Domain\Model\Local\UserSet;
6
7final readonly class EnrichedSet
8{
9    public function __construct(private BaseSet $set, private ?UserSet $userSet = null)
10    {}
11
12    public function getSet(): BaseSet
13    {
14        return $this->set;
15    }
16
17    public function getUserSet(): ?UserSet
18    {
19        return $this->userSet;
20    }