LimitOnCloseOrder   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 0
dl 0
loc 30
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getLiability() 0 4 1
A getPrice() 0 4 1
1
<?php
2
3
namespace Betfair\Model\PlaceOrders;
4
5
/**
6
 * Class LimitOnCloseOrder
7
 *
8
 * Place a new LIMIT_ON_CLOSE bet
9
 * @package Betfair\Model\PlaceOrders
10
 */
11
class LimitOnCloseOrder
12
{
13
    public function __construct($liability, $price)
14
    {
15
        $this->liability = $liability;
16
        $this->price = $price;
17
    }
18
19
    /** @var  float */
20
    private $liability;
21
22
    /** @var  float */
23
    private $price;
24
25
    /**
26
     * @return float
27
     */
28
    public function getLiability()
29
    {
30
        return $this->liability;
31
    }
32
33
    /**
34
     * @return float
35
     */
36
    public function getPrice()
37
    {
38
        return $this->price;
39
    }
40
}