Code Coverage
 
Lines
Branches
Paths
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
4 / 4
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
Struct
100.00% covered (success)
100.00%
4 / 4
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%
2 / 2
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
 name
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
 mdpSetId
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
2namespace Dbmi\Webservice\Contributor;
3
4/**
5 * Contributor
6 * 
7 * @param string     $name
8 * @param string    $mdpSetID
9 */
10class 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?>

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.

Struct->__construct
14    public function __construct( string $name, ?string $mdpSetID = null){
15        $this->name = $name;
16        $this->mdpSetId = $mdpSetID;    
17    }
Struct->mdpSetId
31    public function mdpSetId():?string { return $this->mdpSetId; }
Struct->name
24    public function name():string { return $this->name; }