Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
100.00% |
2 / 2 |
|
100.00% |
2 / 2 |
CRAP | |
100.00% |
1 / 1 |
Numeric | |
100.00% |
2 / 2 |
|
100.00% |
2 / 2 |
2 | |
100.00% |
1 / 1 |
__construct | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
getValue | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 |
1 | <?php |
2 | |
3 | namespace PhpOffice\Math\Element; |
4 | |
5 | class Numeric extends AbstractElement |
6 | { |
7 | /** |
8 | * @var float |
9 | */ |
10 | protected $value; |
11 | |
12 | public function __construct(float $value) |
13 | { |
14 | $this->value = $value; |
15 | } |
16 | |
17 | public function getValue(): float |
18 | { |
19 | return $this->value; |
20 | } |
21 | } |