JEMBOT MAWOT Bypass Shell
<?php
/**
* Mollie https://www.mollie.nl
*
* @author Mollie B.V. <info@mollie.nl>
* @copyright Mollie B.V.
* @license https://github.com/mollie/PrestaShop/blob/master/LICENSE.md
*
* @see https://github.com/mollie/PrestaShop
* @codingStandardsIgnoreStart
*/
declare(strict_types=1);
namespace Mollie\Subscription\DTO\Object;
use JsonSerializable;
use Mollie\Subscription\Constants\IntervalConstant;
use Webmozart\Assert\Assert;
if (!defined('_PS_VERSION_')) {
exit;
}
class Interval implements JsonSerializable
{
/** @var int */
private $amount;
/**
* @description use IntervalConstant::class const for values
*
* @var string
*/
private $intervalValue;
public function __construct(int $amount, string $intervalValue)
{
Assert::greaterThanEq($amount, 0, 'Interval amount cannot be negative');
$this->amount = $amount;
$this->intervalValue = $intervalValue;
}
public function jsonSerialize(): string
{
return "{$this->amount} {$this->intervalValue}";
}
}
xxxxx1.0, XXX xxxx