Completed
Push — feature/fixing_cost ( ef981e )
by Laurent
01:53
created

DamageAmount::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 1
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
3
4
namespace FlightLog\Domain\Damage;
5
6
7
final class DamageAmount
8
{
9
10
    /**
11
     * @var float
12
     */
13
    private $value;
14
15
    /**
16
     * @param float $value
17
     */
18
    public function __construct($value)
19
    {
20
        $this->value = $value;
21
    }
22
23
    /**
24
     * @return string
25
     */
26
    public function getValue()
27
    {
28
        return $this->value;
29
    }
30
31
}