for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Sylius\ShopApiPlugin\Command;
use Webmozart\Assert\Assert;
final class RemoveItemFromCart
{
/**
* @var string
*/
private $orderToken;
* @var mixed
private $itemIdentifier;
* @param string $orderToken
* @param mixed $itemIdentifier
public function __construct(string $orderToken, $itemIdentifier)
Assert::string($orderToken, 'Expected order token to be string, got %s');
$this->orderToken = $orderToken;
$this->itemIdentifier = $itemIdentifier;
}
* @return string
public function orderToken(): string
return $this->orderToken;
* @return mixed
public function itemIdentifier()
return $this->itemIdentifier;