Skip to content

Commit

Permalink
SUPESC-755 Fixed Stan issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
kkicheglovspryker committed Dec 4, 2023
1 parent fc9b5cc commit 9a9045f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,18 @@
use Orm\Zed\Unzer\Persistence\SpyPaymentUnzerOrderItem;
use Orm\Zed\Unzer\Persistence\SpyPaymentUnzerTransaction;
use Orm\Zed\Unzer\Persistence\SpyUnzerCredentials;
use Propel\Runtime\Collection\Collection;
use Propel\Runtime\Collection\ObjectCollection;

class UnzerMapper
{
/**
* @param \Propel\Runtime\Collection\Collection<\Orm\Zed\Unzer\Persistence\SpyPaymentUnzerOrderItem> $paymentUnzerOrderItemEntities
* @param \Propel\Runtime\Collection\ObjectCollection<\Orm\Zed\Unzer\Persistence\SpyPaymentUnzerOrderItem> $paymentUnzerOrderItemEntities
* @param \Generated\Shared\Transfer\PaymentUnzerOrderItemCollectionTransfer $paymentUnzerOrderItemCollectionTransfer
*
* @return \Generated\Shared\Transfer\PaymentUnzerOrderItemCollectionTransfer
*/
public function mapPaymentUnzerOrderItemEntitiesToPaymentUnzerOrderItemCollectionTransfer(
Collection $paymentUnzerOrderItemEntities,
ObjectCollection $paymentUnzerOrderItemEntities,
PaymentUnzerOrderItemCollectionTransfer $paymentUnzerOrderItemCollectionTransfer
): PaymentUnzerOrderItemCollectionTransfer {
foreach ($paymentUnzerOrderItemEntities as $paymentUnzerOrderItemEntity) {
Expand Down Expand Up @@ -210,13 +210,13 @@ public function mapUnzerCredentialsEntityToUnzerCredentialsTransfer(
}

/**
* @param \Propel\Runtime\Collection\Collection<\Orm\Zed\Unzer\Persistence\SpyUnzerCredentialsStore> $unzerCredentialsStoreEntities
* @param \Propel\Runtime\Collection\ObjectCollection<\Orm\Zed\Unzer\Persistence\SpyUnzerCredentialsStore> $unzerCredentialsStoreEntities
* @param \Generated\Shared\Transfer\StoreRelationTransfer $storeRelationTransfer
*
* @return \Generated\Shared\Transfer\StoreRelationTransfer
*/
public function mapUnzerCredentialsStoreEntitiesToStoreRelationTransfer(
Collection $unzerCredentialsStoreEntities,
ObjectCollection $unzerCredentialsStoreEntities,
StoreRelationTransfer $storeRelationTransfer
): StoreRelationTransfer {
foreach ($unzerCredentialsStoreEntities as $unzerCredentialsStoreEntity) {
Expand All @@ -239,13 +239,13 @@ protected function mapStoreEntityToStoreTransfer(SpyStore $storeEntity, StoreTra
}

/**
* @param \Propel\Runtime\Collection\Collection<\Orm\Zed\Unzer\Persistence\SpyUnzerCredentials> $unzerCredentialsEntities
* @param \Propel\Runtime\Collection\ObjectCollection<\Orm\Zed\Unzer\Persistence\SpyUnzerCredentials> $unzerCredentialsEntities
* @param \Generated\Shared\Transfer\UnzerCredentialsCollectionTransfer $unzerCredentialsCollectionTransfer
*
* @return \Generated\Shared\Transfer\UnzerCredentialsCollectionTransfer
*/
public function mapUnzerCredentialsEntityCollectionToUnzerCredentialsTransferCollection(
Collection $unzerCredentialsEntities,
ObjectCollection $unzerCredentialsEntities,
UnzerCredentialsCollectionTransfer $unzerCredentialsCollectionTransfer
): UnzerCredentialsCollectionTransfer {
foreach ($unzerCredentialsEntities as $unzerCredentialsEntity) {
Expand All @@ -258,13 +258,13 @@ public function mapUnzerCredentialsEntityCollectionToUnzerCredentialsTransferCol
}

/**
* @param \Propel\Runtime\Collection\Collection<\Orm\Zed\Unzer\Persistence\SpyPaymentUnzerTransaction> $paymentUnzerTransactionEntities
* @param \Propel\Runtime\Collection\ObjectCollection<\Orm\Zed\Unzer\Persistence\SpyPaymentUnzerTransaction> $paymentUnzerTransactionEntities
* @param \Generated\Shared\Transfer\PaymentUnzerTransactionCollectionTransfer $paymentUnzerTransactionCollectionTransfer
*
* @return \Generated\Shared\Transfer\PaymentUnzerTransactionCollectionTransfer
*/
public function mapPaymentUnzerTransactionEntityCollectionToPaymentUnzerTransactionCollectionTransfer(
Collection $paymentUnzerTransactionEntities,
ObjectCollection $paymentUnzerTransactionEntities,
PaymentUnzerTransactionCollectionTransfer $paymentUnzerTransactionCollectionTransfer
): PaymentUnzerTransactionCollectionTransfer {
foreach ($paymentUnzerTransactionEntities as $paymentUnzerTransactionEntity) {
Expand Down
4 changes: 4 additions & 0 deletions src/SprykerEco/Zed/Unzer/Persistence/UnzerRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ public function findPaymentUnzerByOrderReference(string $orderReference): ?Payme
*/
public function getPaymentUnzerOrderItemCollectionByOrderId(string $orderId): PaymentUnzerOrderItemCollectionTransfer
{
/** @var \Propel\Runtime\Collection\ObjectCollection $paymentUnzerOrderItemEntities */
$paymentUnzerOrderItemEntities = $this->getFactory()
->getPaymentUnzerOrderItemQuery()
->usePaymentUnzerQuery()
Expand Down Expand Up @@ -151,6 +152,7 @@ public function findUnzerCustomerByIdCustomer(int $idCustomer): ?UnzerCustomerTr
*/
public function getStoreRelationByIdUnzerCredentials(int $idUnzerCredentials): StoreRelationTransfer
{
/** @var \Propel\Runtime\Collection\ObjectCollection $unzerCredentialsStoreEntities */
$unzerCredentialsStoreEntities = $this->getFactory()
->getUnzerCredentialsStoreQuery()
->filterByFkUnzerCredentials($idUnzerCredentials)
Expand Down Expand Up @@ -178,6 +180,7 @@ public function findUnzerCredentialsCollectionByCriteria(
$unzerCredentialsCriteriaTransfer->getUnzerCredentialsConditionsOrFail(),
);

/** @var \Propel\Runtime\Collection\ObjectCollection $unzerCredentialsEntities */
$unzerCredentialsEntities = $unzerCredentialsQuery->find();

return $this->getFactory()->getUnzerMapper()
Expand Down Expand Up @@ -216,6 +219,7 @@ public function getPaymentUnzerTransactionCollectionByCriteria(
$paymentUnzerTransactionQuery,
$paymentUnzerTransactionCriteriaTransfer->getPaymentUnzerTransactionConditionsOrFail(),
);
/** @var \Propel\Runtime\Collection\ObjectCollection $paymentUnzerTransactionEntities */
$paymentUnzerTransactionEntities = $paymentUnzerTransactionQuery->find();

return $this->getFactory()->getUnzerMapper()
Expand Down

0 comments on commit 9a9045f

Please sign in to comment.