BuyAction   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 20
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getQuantity() 0 3 1
A setQuantity() 0 3 1
1
<?php
2
3
4
namespace Mokka\Action;
5
6
7
class BuyAction extends Action implements ActionInterface
8
{
9
10
    /** @var  double Amount to buy */
11
    protected $quantity;
12
13
    /**
14
     * @return float
15
     */
16
    public function getQuantity(): float
17
    {
18
        return $this->quantity;
19
    }
20
21
    /**
22
     * @param float $quantity
23
     */
24
    public function setQuantity(float $quantity)
25
    {
26
        $this->quantity = $quantity;
27
    }
28
29
}