Completed
Push — master ( 3c661d...2a57f9 )
by Will
26s queued 12s
created

src/Checkout/Step/AddressBook.php (1 issue)

1
<?php
2
3
namespace SilverShop\Checkout\Step;
4
5
use SilverShop\Cart\ShoppingCart;
6
use SilverShop\Checkout\Component\AddressBookBilling;
7
use SilverShop\Checkout\Component\AddressBookShipping;
8
use SilverShop\Checkout\CheckoutComponentConfig;
9
10
class AddressBook extends Address
11
{
12
    private static $allowed_actions = array(
0 ignored issues
show
The private property $allowed_actions is not used, and could be removed.
Loading history...
13
        'shippingaddress',
14
        'ShippingAddressForm',
15
        'setshippingaddress',
16
        'billingaddress',
17
        'BillingAddressForm',
18
        'setbillingaddress',
19
    );
20
21
    public function shippingconfig()
22
    {
23
        $config = CheckoutComponentConfig::create(ShoppingCart::curr());
24
        $config->addComponent(AddressBookShipping::create());
25
26
        return $config;
27
    }
28
29
    public function billingconfig()
30
    {
31
        $config = CheckoutComponentConfig::create(ShoppingCart::curr());
32
        $config->addComponent(AddressBookBilling::create());
33
34
        return $config;
35
    }
36
}
37