for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Sylius\SyliusShopApiPlugin\Command;
use Webmozart\Assert\Assert;
final class AddCoupon
{
/**
* @var string
*/
private $orderToken;
private $couponCode;
* @param string $orderToken
* @param string $couponCode
public function __construct($orderToken, $couponCode)
Assert::allString([$orderToken, $couponCode]);
$this->orderToken = $orderToken;
$this->couponCode = $couponCode;
}
* @return string
public function orderToken()
return $this->orderToken;
public function couponCode()
return $this->couponCode;