Code Coverage |
||||||||||||||||
Lines |
Branches |
Paths |
Functions and Methods |
Classes and Traits |
||||||||||||
Total | |
100.00% |
4 / 4 |
|
100.00% |
3 / 3 |
|
100.00% |
3 / 3 |
|
100.00% |
3 / 3 |
CRAP | |
100.00% |
1 / 1 |
Struct | |
100.00% |
4 / 4 |
|
100.00% |
3 / 3 |
|
100.00% |
3 / 3 |
|
100.00% |
3 / 3 |
3 | |
100.00% |
1 / 1 |
__construct | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
name | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
mdpSetId | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 |
1 | <?php |
2 | namespace Dbmi\Webservice\Contributor; |
3 | |
4 | /** |
5 | * Contributor |
6 | * |
7 | * @param string $name |
8 | * @param string $mdpSetID |
9 | */ |
10 | class Struct{ |
11 | private string $name; |
12 | private ?string $mdpSetId = null; |
13 | |
14 | public function __construct( string $name, ?string $mdpSetID = null){ |
15 | $this->name = $name; |
16 | $this->mdpSetId = $mdpSetID; |
17 | } |
18 | |
19 | /** |
20 | * Get contributor name |
21 | * |
22 | * @return string Contributor name |
23 | */ |
24 | public function name():string { return $this->name; } |
25 | |
26 | /** |
27 | * Get Mdp Set ID |
28 | * |
29 | * @return string|null mdp set id |
30 | */ |
31 | public function mdpSetId():?string { return $this->mdpSetId; } |
32 | |
33 | } |
34 | ?> |
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.
14 | public function __construct( string $name, ?string $mdpSetID = null){ |
15 | $this->name = $name; |
16 | $this->mdpSetId = $mdpSetID; |
17 | } |
31 | public function mdpSetId():?string { return $this->mdpSetId; } |
24 | public function name():string { return $this->name; } |