Code Coverage |
||||||||||||||||
Lines |
Branches |
Paths |
Functions and Methods |
Classes and Traits |
||||||||||||
Total | |
50.00% |
4 / 8 |
|
20.00% |
1 / 5 |
|
20.00% |
1 / 5 |
|
20.00% |
1 / 5 |
CRAP | |
0.00% |
0 / 1 |
Locality | |
50.00% |
4 / 8 |
|
20.00% |
1 / 5 |
|
20.00% |
1 / 5 |
|
20.00% |
1 / 5 |
17.80 | |
0.00% |
0 / 1 |
__construct | |
100.00% |
4 / 4 |
|
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
id | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
name | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
point | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
intensity | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 |
1 | <?php |
2 | namespace Dbmi\Webservice\Analysis; |
3 | |
4 | use Fdsn\DataStructure\LatLon as DS_LatLon; |
5 | |
6 | /** |
7 | * Locality |
8 | * |
9 | * @param string $id |
10 | * @param string $name |
11 | * @param Fdsn\DataStructure\LatLon $point |
12 | * @param Intensity $intensity |
13 | */ |
14 | class Locality{ |
15 | private ?string $id; |
16 | private ?string $name; |
17 | private DS_LatLon $point; |
18 | private Intensity $intensity; |
19 | |
20 | public function __construct( |
21 | ?string $id, |
22 | ?string $name, |
23 | DS_LatLon $point, |
24 | Intensity $intensity){ |
25 | |
26 | $this->id = $id; |
27 | $this->name = $name; |
28 | $this->point = $point; |
29 | $this->intensity = $intensity; |
30 | } |
31 | |
32 | public function id():string { return $this->id; } |
33 | public function name():string { return $this->name; } |
34 | public function point():DS_LatLon{ return $this->point; } |
35 | public function intensity():Intensity{ return $this->intensity; } |
36 | } |
37 | ?> |
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.
20 | public function __construct( |
21 | ?string $id, |
22 | ?string $name, |
23 | DS_LatLon $point, |
24 | Intensity $intensity){ |
25 | |
26 | $this->id = $id; |
27 | $this->name = $name; |
28 | $this->point = $point; |
29 | $this->intensity = $intensity; |
30 | } |
32 | public function id():string { return $this->id; } |
35 | public function intensity():Intensity{ return $this->intensity; } |
33 | public function name():string { return $this->name; } |
34 | public function point():DS_LatLon{ return $this->point; } |