1 | <?php |
||
12 | class CheckoutBuilder implements CheckoutBuilderInterface |
||
13 | { |
||
14 | /** |
||
15 | * @var Checkout |
||
16 | */ |
||
17 | private $checkout; |
||
18 | |||
19 | /** |
||
20 | * @param Checkout $checkout |
||
21 | */ |
||
22 | 11 | public function __construct(Checkout $checkout = null) |
|
26 | |||
27 | /** |
||
28 | * {@inheritdoc} |
||
29 | */ |
||
30 | 1 | public function addItem(Item $item) |
|
36 | |||
37 | /** |
||
38 | * {@inheritdoc} |
||
39 | */ |
||
40 | 1 | public function setShipping(Shipping $shipping) |
|
46 | |||
47 | /** |
||
48 | * {@inheritdoc} |
||
49 | */ |
||
50 | 1 | public function setReference($reference) |
|
56 | |||
57 | /** |
||
58 | * {@inheritdoc} |
||
59 | */ |
||
60 | 1 | public function setCustomer(Customer $customer) |
|
66 | |||
67 | /** |
||
68 | * {@inheritdoc} |
||
69 | */ |
||
70 | 1 | public function setRedirectTo($redirectTo) |
|
76 | |||
77 | /** |
||
78 | * {@inheritdoc} |
||
79 | */ |
||
80 | 1 | public function setMaxAge($maxAge) |
|
86 | |||
87 | /** |
||
88 | * {@inheritdoc} |
||
89 | */ |
||
90 | 1 | public function setMaxUses($maxUses) |
|
96 | |||
97 | /** |
||
98 | * {@inheritdoc} |
||
99 | */ |
||
100 | public function setExtraAmount($extraAmount) |
||
106 | |||
107 | /** |
||
108 | * {@inheritdoc} |
||
109 | */ |
||
110 | 1 | public function getCheckout() |
|
114 | } |
||
115 |