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 | ?> |