mirror of
https://github.com/bdnugget/magento2.git
synced 2026-11-07 09:17:35 +00:00
37 lines
842 B
PHP
37 lines
842 B
PHP
<?php
|
|
/**
|
|
* Copyright © Magento, Inc. All rights reserved.
|
|
* See COPYING.txt for license details.
|
|
*/
|
|
declare(strict_types=1);
|
|
|
|
namespace Magento\CardinalCommerce\Model\Adminhtml\Source;
|
|
|
|
/**
|
|
* CardinalCommerce Environment Dropdown source
|
|
*/
|
|
class Environment implements \Magento\Framework\Data\OptionSourceInterface
|
|
{
|
|
private const ENVIRONMENT_PRODUCTION = 'production';
|
|
private const ENVIRONMENT_SANDBOX = 'sandbox';
|
|
|
|
/**
|
|
* Possible environment types
|
|
*
|
|
* @return array
|
|
*/
|
|
public function toOptionArray(): array
|
|
{
|
|
return [
|
|
[
|
|
'value' => self::ENVIRONMENT_SANDBOX,
|
|
'label' => 'Sandbox',
|
|
],
|
|
[
|
|
'value' => self::ENVIRONMENT_PRODUCTION,
|
|
'label' => 'Production'
|
|
]
|
|
];
|
|
}
|
|
}
|