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\CrefoPayApi\Persistence; |
9
|
|
|
|
10
|
|
|
use Generated\Shared\Transfer\PaymentCrefoPayApiLogTransfer; |
|
|
|
|
11
|
|
|
use Generated\Shared\Transfer\SpyPaymentCrefoPayApiLogEntityTransfer; |
|
|
|
|
12
|
|
|
use Spryker\Zed\Kernel\Persistence\AbstractEntityManager; |
|
|
|
|
13
|
|
|
use SprykerEco\Zed\CrefoPayApi\Persistence\Mapper\CrefoPayApiPersistenceMapperInterface; |
14
|
|
|
|
15
|
|
|
/** |
16
|
|
|
* @method \SprykerEco\Zed\CrefoPayApi\Persistence\CrefoPayApiPersistenceFactory getFactory() |
17
|
|
|
*/ |
18
|
|
|
class CrefoPayApiEntityManager extends AbstractEntityManager implements CrefoPayApiEntityManagerInterface |
19
|
|
|
{ |
20
|
|
|
/** |
21
|
|
|
* @param \Generated\Shared\Transfer\PaymentCrefoPayApiLogTransfer $paymentCrefoPayApiLogTransfer |
22
|
|
|
* |
23
|
|
|
* @return \Generated\Shared\Transfer\PaymentCrefoPayApiLogTransfer |
24
|
|
|
*/ |
25
|
|
|
public function savePaymentCrefoPayApiLog( |
26
|
|
|
PaymentCrefoPayApiLogTransfer $paymentCrefoPayApiLogTransfer |
27
|
|
|
): PaymentCrefoPayApiLogTransfer { |
28
|
|
|
$entityTransfer = $this->getMapper() |
29
|
|
|
->mapPaymentCrefoPayApiLogTransferToEntityTransfer( |
30
|
|
|
$paymentCrefoPayApiLogTransfer, |
31
|
|
|
new SpyPaymentCrefoPayApiLogEntityTransfer() |
32
|
|
|
); |
33
|
|
|
|
34
|
|
|
/** @var \Generated\Shared\Transfer\SpyPaymentCrefoPayApiLogEntityTransfer $entityTransfer */ |
35
|
|
|
$entityTransfer = $this->save($entityTransfer); |
36
|
|
|
|
37
|
|
|
$paymentCrefoPayApiLogTransfer = $this->getMapper() |
38
|
|
|
->mapEntityTransferToPaymentCrefoPayApiLogTransfer( |
39
|
|
|
$entityTransfer, |
40
|
|
|
$paymentCrefoPayApiLogTransfer |
41
|
|
|
); |
42
|
|
|
|
43
|
|
|
return $paymentCrefoPayApiLogTransfer; |
44
|
|
|
} |
45
|
|
|
|
46
|
|
|
/** |
47
|
|
|
* @return \SprykerEco\Zed\CrefoPayApi\Persistence\Mapper\CrefoPayApiPersistenceMapperInterface |
48
|
|
|
*/ |
49
|
|
|
protected function getMapper(): CrefoPayApiPersistenceMapperInterface |
50
|
|
|
{ |
51
|
|
|
return $this->getFactory()->createCrefoPayApiPersistenceMapper(); |
52
|
|
|
} |
53
|
|
|
} |
54
|
|
|
|
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:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths