Completed
Push — master ( dee99f...2e0f75 )
by Tim
20s queued 10s
created

DefaultBillingAddressImportObserver::process()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
ccs 0
cts 3
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 2
1
<?php
2
3
/**
4
 * NOTICE OF LICENSE
5
 *
6
 * This source file is subject to the Open Software License (OSL 3.0)
7
 * that is available through the world-wide-web at this URL:
8
 * http://opensource.org/licenses/osl-3.0.php
9
 *
10
 * @author    Vadim Justus <[email protected]>
11
 * @author    Harald Deiser <[email protected]>
12
 * @copyright 2018 TechDivision GmbH <[email protected]>
13
 * @license   http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
14
 * @link      https://github.com/techdivision/import-customer-address
15
 * @link      http://www.techdivision.com
16
 */
17
18
namespace TechDivision\Import\Customer\Address\Observers;
19
20
/**
21
 * Set default billing address
22
 *
23
 * @copyright  Copyright (c) 2019 TechDivision GmbH (http://www.techdivision.com)
24
 * @author     TechDivision Team Allstars <[email protected]>
25
 * @link       http://www.techdivision.com/
26
 */
27
class DefaultBillingAddressImportObserver extends AbstractDefaultAddressImportObserver
28
{
29
30
    /**
31
     * Process the observer's business logic.
32
     *
33
     * @return void
34
     */
35
    protected function process()
36
    {
37
        $this->saveDefaultAddressByType(parent::TYPE_DEFAULT_BILLING);
38
    }
39
}
40