-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FRW-7373 Implemented non-transactional saving for Data Exchange API. …
…(#10910) FRW-7373 Implemented non-transactional saving for Data Exchange API.
- Loading branch information
1 parent
f38af23
commit 24c73a2
Showing
55 changed files
with
2,922 additions
and
1,927 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
66 changes: 66 additions & 0 deletions
66
src/Spryker/Zed/DynamicEntity/Business/Configuration/DynamicEntityConfigurationResponse.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
<?php | ||
|
||
/** | ||
* Copyright © 2016-present Spryker Systems GmbH. All rights reserved. | ||
* Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file. | ||
*/ | ||
|
||
namespace Spryker\Zed\DynamicEntity\Business\Configuration; | ||
|
||
use Generated\Shared\Transfer\DynamicEntityConfigurationTransfer; | ||
use Generated\Shared\Transfer\ErrorTransfer; | ||
|
||
class DynamicEntityConfigurationResponse implements DynamicEntityConfigurationResponseInterface | ||
{ | ||
/** | ||
* @var \Generated\Shared\Transfer\DynamicEntityConfigurationTransfer | ||
*/ | ||
protected DynamicEntityConfigurationTransfer $dynamicEntityConfigurationTransfer; | ||
|
||
/** | ||
* @var array<\Generated\Shared\Transfer\ErrorTransfer> | ||
*/ | ||
protected array $errorTransfers = []; | ||
|
||
/** | ||
* @return \Generated\Shared\Transfer\DynamicEntityConfigurationTransfer | ||
*/ | ||
public function getDynamicEntityConfigurationTransfer(): DynamicEntityConfigurationTransfer | ||
{ | ||
return $this->dynamicEntityConfigurationTransfer; | ||
} | ||
|
||
/** | ||
* @return array<\Generated\Shared\Transfer\ErrorTransfer> | ||
*/ | ||
public function getErrorTransfers(): array | ||
{ | ||
return $this->errorTransfers; | ||
} | ||
|
||
/** | ||
* @param \Generated\Shared\Transfer\DynamicEntityConfigurationTransfer $dynamicEntityConfigurationTransfer | ||
* | ||
* @return \Spryker\Zed\DynamicEntity\Business\Configuration\DynamicEntityConfigurationResponseInterface | ||
*/ | ||
public function setDynamicConfigurationTransfer( | ||
DynamicEntityConfigurationTransfer $dynamicEntityConfigurationTransfer | ||
): DynamicEntityConfigurationResponseInterface { | ||
$this->dynamicEntityConfigurationTransfer = $dynamicEntityConfigurationTransfer; | ||
|
||
return $this; | ||
} | ||
|
||
/** | ||
* @param \Generated\Shared\Transfer\ErrorTransfer $errorTransfer | ||
* | ||
* @return \Spryker\Zed\DynamicEntity\Business\Configuration\DynamicEntityConfigurationResponseInterface | ||
*/ | ||
public function addErrorTransfer( | ||
ErrorTransfer $errorTransfer | ||
): DynamicEntityConfigurationResponseInterface { | ||
$this->errorTransfers[] = $errorTransfer; | ||
|
||
return $this; | ||
} | ||
} |
40 changes: 40 additions & 0 deletions
40
.../Zed/DynamicEntity/Business/Configuration/DynamicEntityConfigurationResponseInterface.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<?php | ||
|
||
/** | ||
* Copyright © 2016-present Spryker Systems GmbH. All rights reserved. | ||
* Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file. | ||
*/ | ||
|
||
namespace Spryker\Zed\DynamicEntity\Business\Configuration; | ||
|
||
use Generated\Shared\Transfer\DynamicEntityConfigurationTransfer; | ||
use Generated\Shared\Transfer\ErrorTransfer; | ||
|
||
interface DynamicEntityConfigurationResponseInterface | ||
{ | ||
/** | ||
* @return \Generated\Shared\Transfer\DynamicEntityConfigurationTransfer | ||
*/ | ||
public function getDynamicEntityConfigurationTransfer(): DynamicEntityConfigurationTransfer; | ||
|
||
/** | ||
* @return array<\Generated\Shared\Transfer\ErrorTransfer> | ||
*/ | ||
public function getErrorTransfers(): array; | ||
|
||
/** | ||
* @param \Generated\Shared\Transfer\DynamicEntityConfigurationTransfer $dynamicEntityConfigurationTransfer | ||
* | ||
* @return $this | ||
*/ | ||
public function setDynamicConfigurationTransfer( | ||
DynamicEntityConfigurationTransfer $dynamicEntityConfigurationTransfer | ||
): self; | ||
|
||
/** | ||
* @param \Generated\Shared\Transfer\ErrorTransfer $errorTransfer | ||
* | ||
* @return $this | ||
*/ | ||
public function addErrorTransfer(ErrorTransfer $errorTransfer); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.