PlaceOrderParam   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A addPlaceInstruction() 0 4 1
A setCustomRef() 0 4 1
1
<?php
2
3
namespace Betfair\Model\PlaceOrders;
4
5
use Betfair\Model\BetfairSerializable;
6
7
class PlaceOrderParam extends BetfairSerializable
8
{
9
    public function __construct($marketId, array $placeInstructions = array())
10
    {
11
        $this->marketId = $marketId;
12
        $this->placeInstructions = $placeInstructions;
13
    }
14
15
    /** @var  string */
16
    private $marketId;
17
18
    private $placeInstructions;
19
20
    /** @var  string */
21
    private $customRef;
22
23
    public function addPlaceInstruction(PlaceInstruction $placeInstruction)
24
    {
25
        $this->placeInstructions[] = $placeInstruction;
26
    }
27
28
    public function setCustomRef($customRef)
29
    {
30
        $this->customRef = $customRef;
31
    }
32
}
33