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