Code Coverage
 
Lines
Branches
Paths
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
5 / 5
100.00% covered (success)
100.00%
5 / 5
100.00% covered (success)
100.00%
5 / 5
100.00% covered (success)
100.00%
5 / 5
CRAP
100.00% covered (success)
100.00%
1 / 1
BasePart
100.00% covered (success)
100.00%
5 / 5
100.00% covered (success)
100.00%
5 / 5
100.00% covered (success)
100.00%
5 / 5
100.00% covered (success)
100.00%
5 / 5
5
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
 getExternalId
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
 getLegoId
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
 getName
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
 getImagePath
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
5/**
6 * @author Wilhelm Zwertvaegher
7 * A representation of an external Part  retrieved from an external source
8 */
9abstract readonly class BasePart
10{
11    public function __construct(
12        private string $externalId,
13        private string $legoId,
14        private string $name,
15        private string $imagePath
16    ) {
17    }
18
19    public function getExternalId(): string
20    {
21        return $this->externalId;
22    }
23
24    public function getLegoId(): string
25    {
26        return $this->legoId;
27    }
28
29    public function getName(): string
30    {
31        return $this->name;
32    }
33
34    public function getImagePath(): string
35    {
36        return $this->imagePath;
37    }
38}

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.

BasePart->__construct
11    public function __construct(
12        private string $externalId,
13        private string $legoId,
14        private string $name,
15        private string $imagePath
16    ) {
17    }
BasePart->getExternalId
21        return $this->externalId;
22    }
BasePart->getImagePath
36        return $this->imagePath;
37    }
BasePart->getLegoId
26        return $this->legoId;
27    }
BasePart->getName
31        return $this->name;
32    }