-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5bc230d
commit fcf641d
Showing
6 changed files
with
79 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<?php | ||
/** | ||
* Copyright © TrueLayer Ltd. All rights reserved. | ||
* See COPYING.txt for license details. | ||
*/ | ||
declare(strict_types=1); | ||
|
||
namespace TrueLayer\Connect\Model\Config\Source; | ||
|
||
use Magento\Framework\Data\OptionSourceInterface; | ||
|
||
/** | ||
* ReleaseChannel Options Source model | ||
*/ | ||
class ReleaseChannel implements OptionSourceInterface | ||
{ | ||
public const GENERAL_AVAILABILITY = 'general_availability'; | ||
public const PUBLIC_BETA = 'public_beta'; | ||
public const PRIVATE_BETA = 'private_beta'; | ||
|
||
/** | ||
* Returns mode option source array | ||
* | ||
* @return array | ||
*/ | ||
public function toOptionArray(): array | ||
{ | ||
return [ | ||
['value' => self::GENERAL_AVAILABILITY, 'label' => __('General Availability')], | ||
['value' => self::PUBLIC_BETA, 'label' => __('Public Beta')], | ||
['value' => self::PRIVATE_BETA, 'label' => __('Private Beta')] | ||
]; | ||
} | ||
} |
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