for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* TechDivision\Import\Product\Ee\Utils\RmaKeys
*
* NOTICE OF LICENSE
* This source file is subject to the Open Software License (OSL 3.0)
* that is available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php
* PHP version 5
* @author Tim Wagner <[email protected]>
* @copyright 2020 TechDivision GmbH <[email protected]>
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* @link https://github.com/techdivision/import-product-ee
* @link http://www.techdivision.com
*/
namespace TechDivision\Import\Product\Ee\Utils;
* Utitlity class that provides RMA keys.
class RmaKeys implements RmaKeysInterface
{
* The available states for the 'is_returnable' colum.
* @var array
protected $returnable = array(
RmaKeysInterface::NOT_RETURNABLE => 0,
RmaKeysInterface::RETURNABLE => 1,
RmaKeysInterface::USE_CONFIG => 2
);
* Return's the value for the passed key.
* @param string $key The key to return the value for
* @return int The value
public function get(string $key) : int
return isset($this->returnable[$key]) ? $this->returnable[$key] : $this->returnable[RmaKeysInterface::USE_CONFIG];
}