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
SearchSetQuery
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
 getSearch
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
 getUserId
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\Application\Command;
4
5use App\Shared\Domain\Model\EntityId;
6
7final readonly class SearchSetQuery
8{
9    public function __construct(
10        private string $search,
11        private ?EntityId $userId = null
12    )
13    {}
14
15    public function getSearch(): string
16    {
17        return $this->search;
18    }
19
20    public function getUserId() :?EntityId
21    {
22        return $this->userId;
23    }
24}

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.

SearchSetQuery->__construct
9    public function __construct(
10        private string $search,
11        private ?EntityId $userId = null
12    )
13    {}
SearchSetQuery->getSearch
17        return $this->search;
18    }
SearchSetQuery->getUserId
22        return $this->userId;
23    }
{main}
3namespace App\CollectionManagement\Application\Command;
4
5use App\Shared\Domain\Model\EntityId;
6
7final readonly class SearchSetQuery
8{
9    public function __construct(
10        private string $search,
11        private ?EntityId $userId = null
12    )
13    {}
14
15    public function getSearch(): string
16    {
17        return $this->search;
18    }
19
20    public function getUserId() :?EntityId
21    {
22        return $this->userId;
23    }