BuyAction::setQuantity()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
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
}