| Conditions | 4 |
| Paths | 4 |
| Total Lines | 14 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 18 | public function __construct(Order $order) |
||
| 19 | { |
||
| 20 | parent::__construct($order); |
||
| 21 | $this->addComponent(CustomerDetails::create()); |
||
| 22 | $this->addComponent(ShippingAddress::create()); |
||
| 23 | $this->addComponent(BillingAddress::create()); |
||
| 24 | if (Checkout::member_creation_enabled() && !Security::getCurrentUser()) { |
||
| 25 | $this->addComponent(Membership::create()); |
||
| 26 | } |
||
| 27 | if (count(GatewayInfo::getSupportedGateways()) > 1) { |
||
| 28 | $this->addComponent(Payment::create()); |
||
| 29 | } |
||
| 30 | $this->addComponent(Notes::create()); |
||
| 31 | $this->addComponent(Terms::create()); |
||
| 32 | } |
||
| 34 |