| Current Path : /home/rtorresani/www/vendor/paypal/module-braintree-core/Model/Adminhtml/Source/ |
| Current File : //home/rtorresani/www/vendor/paypal/module-braintree-core/Model/Adminhtml/Source/Environment.php |
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
namespace PayPal\Braintree\Model\Adminhtml\Source;
use Magento\Framework\Option\ArrayInterface;
class Environment implements ArrayInterface
{
public const ENVIRONMENT_PRODUCTION = 'production';
public 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'
]
];
}
}