-
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.
fix(core): correct names of interfaces
- Loading branch information
1 parent
5d77c66
commit d4a08c0
Showing
31 changed files
with
155 additions
and
134 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
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
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,46 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace MyParcelNL\Pdk\Settings\Contract; | ||
|
||
use MyParcelNL\Pdk\Base\Contract\RepositoryInterface; | ||
use MyParcelNL\Pdk\Settings\Collection\SettingsModelCollection; | ||
use MyParcelNL\Pdk\Settings\Model\AbstractSettingsModel; | ||
use MyParcelNL\Pdk\Settings\Model\Settings; | ||
|
||
interface PdkSettingsRepositoryInterface extends RepositoryInterface | ||
{ | ||
/** | ||
* Retrieve all settings from your platform. | ||
*/ | ||
public function all(): Settings; | ||
|
||
/** | ||
* Get a single setting's value from your platform by a dot separated setting identifier. | ||
* | ||
* @see \MyParcelNL\Pdk\Settings\Model\Settings | ||
* @example get('general.apiKey') | ||
* @example get('carrier.postnl.allowOnlyRecipient') | ||
*/ | ||
public function get(string $key); | ||
|
||
/** | ||
* Store a single setting's value in your platform by a dot separated setting identifier. | ||
*/ | ||
public function store(string $key, $value): void; | ||
|
||
/** | ||
* @param \MyParcelNL\Pdk\Settings\Model\Settings $settings | ||
* | ||
* @return void | ||
*/ | ||
public function storeAllSettings(Settings $settings): void; | ||
|
||
/** | ||
* @param SettingsModelCollection|AbstractSettingsModel $settings | ||
* | ||
* @return void | ||
*/ | ||
public function storeSettings($settings): 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
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
Oops, something went wrong.