Total Complexity | 3 |
Total Lines | 37 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
14 | class PriceVolumeModel |
||
15 | { |
||
16 | /** |
||
17 | * @var float |
||
18 | */ |
||
19 | private $price; |
||
20 | /** |
||
21 | * @var float |
||
22 | */ |
||
23 | private $volume; |
||
24 | |||
25 | /** |
||
26 | * PriceVolumeModel constructor. |
||
27 | * |
||
28 | * @param float $price |
||
29 | * @param float $volume |
||
30 | */ |
||
31 | public function __construct($price, $volume) |
||
32 | { |
||
33 | $this->price = $price; |
||
34 | $this->volume = $volume; |
||
35 | } |
||
36 | |||
37 | /** |
||
38 | * @return float |
||
39 | */ |
||
40 | public function getPrice() |
||
41 | { |
||
42 | return $this->price; |
||
43 | } |
||
44 | |||
45 | /** |
||
46 | * @return float |
||
47 | */ |
||
48 | public function getVolume() |
||
51 | } |
||
52 | } |
||
53 |