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