Completed
Push — master ( 8dd020...3b4ad2 )
by mark
13:23 queued 06:30
created

InxmailFacade::handleShippingConfirmationEvent()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 5
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
3
/**
4
 * MIT License
5
 * For full license information, please view the LICENSE file that was distributed with this source code.
6
 */
7
8
namespace SprykerEco\Zed\Inxmail\Business;
9
10
use Generated\Shared\Transfer\CustomerTransfer;
0 ignored issues
show
Bug introduced by
The type Generated\Shared\Transfer\CustomerTransfer was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
11
use Spryker\Zed\Kernel\Business\AbstractFacade;
12
13
/**
14
 * @method \SprykerEco\Zed\Inxmail\Business\InxmailBusinessFactory getFactory()
15
 */
16
class InxmailFacade extends AbstractFacade implements InxmailFacadeInterface
17
{
18
    /**
19
     * {@inheritdoc}
20
     *
21
     * @param \Generated\Shared\Transfer\CustomerTransfer $customerTransfer
22
     *
23
     * @return void
24
     */
25
    public function handleCustomerRegistrationEvent(CustomerTransfer $customerTransfer): void
26
    {
27
        $this->getFactory()
28
            ->createCustomerRegistrationEventHandler()
29
            ->handle($customerTransfer);
30
    }
31
32
    /**
33
     * {@inheritdoc}
34
     *
35
     * @param \Generated\Shared\Transfer\CustomerTransfer $customerTransfer
36
     *
37
     * @return void
38
     */
39
    public function handleCustomerResetPasswordEvent(CustomerTransfer $customerTransfer): void
40
    {
41
        $this->getFactory()
42
            ->createCustomerResetPasswordEventHandler()
43
            ->handle($customerTransfer);
44
    }
45
46
    /**
47
     * {@inheritdoc}
48
     *
49
     * @param int $idSalesOrder
50
     *
51
     * @return void
52
     */
53
    public function handleNewOrderEvent(int $idSalesOrder): void
54
    {
55
        $this->getFactory()
56
            ->createNewOrderEventHandler()
57
            ->handle($idSalesOrder);
58
    }
59
60
    /**
61
     * {@inheritdoc}
62
     *
63
     * @param int $idSalesOrder
64
     *
65
     * @return void
66
     */
67
    public function handleOrderCanceledEvent(int $idSalesOrder): void
68
    {
69
        $this->getFactory()
70
            ->createOrderCanceledEventHandler()
71
            ->handle($idSalesOrder);
72
    }
73
74
    /**
75
     * {@inheritdoc}
76
     *
77
     * @param int $idSalesOrder
78
     *
79
     * @return void
80
     */
81
    public function handlePaymentNotReceivedEvent(int $idSalesOrder): void
82
    {
83
        $this->getFactory()
84
            ->createPaymentNotReceivedEventHandler()
85
            ->handle($idSalesOrder);
86
    }
87
88
    /**
89
     * {@inheritdoc}
90
     *
91
     * @param int $idSalesOrder
92
     *
93
     * @return void
94
     */
95
    public function handleShippingConfirmationEvent(int $idSalesOrder): void
96
    {
97
        $this->getFactory()
98
            ->createShippingConfirmationEventHandler()
99
            ->handle($idSalesOrder);
100
    }
101
}
102