1 | <?php |
||
10 | class ChargeBuilder implements ChargeBuilderInterface |
||
11 | { |
||
12 | /** |
||
13 | * @var Charge |
||
14 | */ |
||
15 | private $charge; |
||
16 | |||
17 | /** |
||
18 | * @param string $code |
||
19 | * @param Charge $charge |
||
20 | */ |
||
21 | 4 | public function __construct($code, Charge $charge = null) |
|
26 | |||
27 | /** |
||
28 | * {@inheritdoc} |
||
29 | */ |
||
30 | 1 | public function addItem(Item $item) |
|
36 | |||
37 | /** |
||
38 | * {@inheritdoc} |
||
39 | */ |
||
40 | 1 | public function setReference($reference) |
|
46 | |||
47 | /** |
||
48 | * {@inheritdoc} |
||
49 | */ |
||
50 | 1 | public function getCharge() |
|
54 | } |
||
55 |