for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Sylius\ShopApiPlugin\Command;
final class PutSimpleItemToCart
{
/**
* @var string
*/
private $token;
private $product;
* @var int
private $quantity;
* @param string $token
* @param string $product
* @param int $quantity
public function __construct($token, $product, $quantity)
$this->token = $token;
$this->product = $product;
$this->quantity = $quantity;
}
* @return string
public function token()
return $this->token;
public function product()
return $this->product;
* @return int
public function quantity()
return $this->quantity;