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

DamageAmount   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
dl 0
loc 25
rs 10
c 0
b 0
f 0
wmc 2
lcom 0
cbo 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getValue() 0 4 1
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
}