Passed
Pull Request — master (#23)
by Aleksey
09:29 queued 06:06
created

ArvatoRssFacade::updateApiLogWithOrderReference()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 3
nc 1
nop 2
dl 0
loc 5
rs 10
c 0
b 0
f 0
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\ArvatoRss\Business;
9
10
use Generated\Shared\Transfer\OrderTransfer;
0 ignored issues
show
Bug introduced by
The type Generated\Shared\Transfer\OrderTransfer 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 Generated\Shared\Transfer\QuoteTransfer;
0 ignored issues
show
Bug introduced by
The type Generated\Shared\Transfer\QuoteTransfer 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...
12
use Spryker\Zed\Kernel\Business\AbstractFacade;
13
14
/**
15
 * @method \SprykerEco\Zed\ArvatoRss\Business\ArvatoRssBusinessFactory getFactory()
16
 * @method \SprykerEco\Zed\ArvatoRss\Persistence\ArvatoRssRepositoryInterface getRepository()
17
 * @method \SprykerEco\Zed\ArvatoRss\Persistence\ArvatoRssEntityManagerInterface getEntityManager()
18
 */
19
class ArvatoRssFacade extends AbstractFacade implements ArvatoRssFacadeInterface
20
{
21
    /**
22
     * {@inheritdoc}
23
     *
24
     * @api
25
     *
26
     * @param \Generated\Shared\Transfer\QuoteTransfer $quoteTransfer
27
     *
28
     * @return \Generated\Shared\Transfer\QuoteTransfer
29
     */
30
    public function performRiskCheck(QuoteTransfer $quoteTransfer)
31
    {
32
        return $this->getFactory()->createRiskCheckHandler()->performRiskCheck($quoteTransfer);
33
    }
34
35
    /**
36
     * {@inheritdoc}
37
     *
38
     * @api
39
     *
40
     * @param \Generated\Shared\Transfer\OrderTransfer $orderTransfer
41
     *
42
     * @return void
43
     */
44
    public function storeOrder(OrderTransfer $orderTransfer)
45
    {
46
        $this->getFactory()->createStoreOrderHandler()->storeOrder($orderTransfer);
47
    }
48
49
    /**
50
     * {@inheritdoc}
51
     *
52
     * @api
53
     *
54
     * @param string $communicationToken
55
     * @param string $orderReference
56
     *
57
     * @return void
58
     */
59
    public function updateApiLogWithOrderReference(string $communicationToken, string $orderReference): void
60
    {
61
        $this->getFactory()
62
            ->createArvatoRssWriter()
63
            ->updateLogWithOrderReference($communicationToken, $orderReference);
64
    }
65
}
66