-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/opengento/magento2-better-bo
- Loading branch information
Showing
21 changed files
with
539 additions
and
63 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<?php | ||
|
||
|
||
namespace Opengento\BetterBo\Api\Data; | ||
|
||
interface GetResponseConfigInterface | ||
{ | ||
/** | ||
* @return string | ||
*/ | ||
public function getType(): string; | ||
|
||
/** | ||
* @param string $type | ||
* @return void | ||
*/ | ||
public function setType(string $type): void; | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getFrontendLabel(): string; | ||
|
||
/** | ||
* @param string $frontendLabel | ||
* @return void | ||
*/ | ||
public function setFrontendLabel(string $frontendLabel): void; | ||
|
||
/** | ||
* @return \Opengento\BetterBo\Api\Data\GetResponseConfigOptionsInterface[] | ||
*/ | ||
public function getOptions(): array; | ||
|
||
/** | ||
* @param \Opengento\BetterBo\Api\Data\GetResponseConfigOptionsInterface[] $options | ||
* @return void | ||
*/ | ||
public function setOptions(array $options): void; | ||
} |
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,29 @@ | ||
<?php | ||
|
||
|
||
namespace Opengento\BetterBo\Api\Data; | ||
|
||
interface GetResponseConfigOptionsInterface | ||
{ | ||
/** | ||
* @return string | ||
*/ | ||
public function getValue(): string; | ||
|
||
/** | ||
* @param string $value | ||
* @return void | ||
*/ | ||
public function setValue(string $value): void; | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getLabel(): string; | ||
|
||
/** | ||
* @param string $label | ||
* @return void | ||
*/ | ||
public function setLabel(string $label): void; | ||
} |
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,29 @@ | ||
<?php | ||
|
||
|
||
namespace Opengento\BetterBo\Api\Data; | ||
|
||
interface GetResponseDataInterface | ||
{ | ||
/** | ||
* @return \Opengento\BetterBo\Api\Data\GetResponseConfigInterface | ||
*/ | ||
public function getConfig(): \Opengento\BetterBo\Api\Data\GetResponseConfigInterface; | ||
|
||
/** | ||
* @param \Opengento\BetterBo\Api\Data\GetResponseConfigInterface $config | ||
* @return void | ||
*/ | ||
public function setConfig(\Opengento\BetterBo\Api\Data\GetResponseConfigInterface $config): void; | ||
|
||
/** | ||
* @return \Opengento\BetterBo\Api\Data\GetResponseValuesInterface[] | ||
*/ | ||
public function getValues(): array; | ||
|
||
/** | ||
* @param \Opengento\BetterBo\Api\Data\GetResponseValuesInterface[] $values | ||
* @return void | ||
*/ | ||
public function setValues(array $values): void; | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<?php | ||
|
||
|
||
namespace Opengento\BetterBo\Api\Data; | ||
|
||
interface GetResponseValuesInterface | ||
{ | ||
/** | ||
* @return string | ||
*/ | ||
public function getStoreViewId(): string; | ||
|
||
/** | ||
* @param string $storeViewId | ||
* @return void | ||
*/ | ||
public function setStoreViewId(string $storeViewId): void; | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getStoreViewLabel(): string; | ||
|
||
/** | ||
* @param string $storeViewLabel | ||
* @return void | ||
*/ | ||
public function setStoreViewLabel(string $storeViewLabel): void; | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getValue(): string; | ||
|
||
/** | ||
* @param string $value | ||
* @return void | ||
*/ | ||
public function setValue(string $value): void; | ||
} |
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
2 changes: 1 addition & 1 deletion
2
Model/Data/Get/GetPayload.php → Model/Data/Payload/GetPayload.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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
<?php | ||
|
||
/** | ||
* GetResponseConfig | ||
* | ||
* @copyright Copyright © 2024 Blackbird Agency. All rights reserved. | ||
* @author [email protected] | ||
*/ | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Opengento\BetterBo\Model\Data\Response; | ||
|
||
|
||
use Opengento\BetterBo\Api\Data\GetResponseConfigInterface; | ||
|
||
class GetResponseConfig implements GetResponseConfigInterface | ||
{ | ||
/** | ||
* @var string | ||
*/ | ||
protected string $type; | ||
|
||
/** | ||
* @var string | ||
*/ | ||
protected string $frontendLabel; | ||
|
||
/** | ||
* @var \Opengento\BetterBo\Api\Data\GetResponseConfigOptionsInterface | ||
*/ | ||
protected array $options; | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getType(): string | ||
{ | ||
return $this->type; | ||
} | ||
|
||
/** | ||
* @param string $type | ||
* @return void | ||
*/ | ||
public function setType(string $type): void | ||
{ | ||
$this->type = $type; | ||
} | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getFrontendLabel(): string | ||
{ | ||
return $this->frontendLabel; | ||
} | ||
|
||
/** | ||
* @param string $frontendLabel | ||
* @return void | ||
*/ | ||
public function setFrontendLabel(string $frontendLabel): void | ||
{ | ||
$this->frontendLabel = $frontendLabel; | ||
} | ||
|
||
/** | ||
* @return \Opengento\BetterBo\Api\Data\GetResponseConfigOptionsInterface[] | ||
*/ | ||
public function getOptions(): array | ||
{ | ||
return $this->options; | ||
} | ||
|
||
/** | ||
* @param \Opengento\BetterBo\Api\Data\GetResponseConfigOptionsInterface[] $options | ||
* @return void | ||
*/ | ||
public function setOptions(array $options): void | ||
{ | ||
$this->options = $options; | ||
} | ||
} |
Oops, something went wrong.