Code Coverage
 
Lines
Branches
Paths
Functions and Methods
Classes and Traits
Total
50.00% covered (danger)
50.00%
4 / 8
20.00% covered (danger)
20.00%
1 / 5
20.00% covered (danger)
20.00%
1 / 5
20.00% covered (danger)
20.00%
1 / 5
CRAP
0.00% covered (danger)
0.00%
0 / 1
Locality
50.00% covered (danger)
50.00%
4 / 8
20.00% covered (danger)
20.00%
1 / 5
20.00% covered (danger)
20.00%
1 / 5
20.00% covered (danger)
20.00%
1 / 5
17.80
0.00% covered (danger)
0.00%
0 / 1
 __construct
100.00% covered (success)
100.00%
4 / 4
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
 id
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 name
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 point
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 intensity
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
1<?php
2namespace Dbmi\Webservice\Analysis;
3
4use 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 */
14class 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?>

Branches

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.

Locality->__construct
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    }
Locality->id
32    public function id():string { return $this->id; } 
Locality->intensity
35    public function intensity():Intensity{ return $this->intensity; } 
Locality->name
33    public function name():string { return $this->name; } 
Locality->point
34    public function point():DS_LatLon{ return $this->point; }