Issues (359)

src/SprykerEco/Client/CrefoPay/CrefoPayClient.php (2 issues)

Labels
Severity
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\Client\CrefoPay;
9
10
use Generated\Shared\Transfer\CrefoPayNotificationTransfer;
0 ignored issues
show
The type Generated\Shared\Transfe...PayNotificationTransfer 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
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\Client\Kernel\AbstractClient;
13
14
/**
15
 * @method \SprykerEco\Client\CrefoPay\CrefoPayFactory getFactory()
16
 */
17
class CrefoPayClient extends AbstractClient implements CrefoPayClientInterface
18
{
19
    /**
20
     * {@inheritDoc}
21
     *
22
     * @api
23
     *
24
     * @param \Generated\Shared\Transfer\QuoteTransfer $quoteTransfer
25
     *
26
     * @return \Generated\Shared\Transfer\QuoteTransfer
27
     */
28
    public function startCrefoPayTransaction(QuoteTransfer $quoteTransfer): QuoteTransfer
29
    {
30
        return $this->getFactory()
31
            ->createZedCrefoPayStub()
32
            ->startCrefoPayTransaction($quoteTransfer);
33
    }
34
35
    /**
36
     * {@inheritDoc}
37
     *
38
     * @api
39
     *
40
     * @param \Generated\Shared\Transfer\CrefoPayNotificationTransfer $notificationTransfer
41
     *
42
     * @return \Generated\Shared\Transfer\CrefoPayNotificationTransfer
43
     */
44
    public function processNotification(CrefoPayNotificationTransfer $notificationTransfer): CrefoPayNotificationTransfer
45
    {
46
        return $this->getFactory()
47
            ->createZedCrefoPayStub()
48
            ->processNotification($notificationTransfer);
49
    }
50
}
51