for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* MIT License
* Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file.
*/
namespace SprykerEco\Client\Payone\ClientApi\Mode;
use Spryker\Shared\Config\Environment;
use SprykerEco\Shared\Payone\Dependency\ModeDetectorInterface;
* @deprecated Use Zed one instead
class ModeDetector implements ModeDetectorInterface
{
* @deprecated Will be removed. Needs refactoring to use Zed getMode().
*
* @return string
public function getMode(): string
if (Environment::isNotProduction()) {
return self::MODE_TEST;
}
return self::MODE_LIVE;