* @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) */ namespace PrestaShopBundle\Api\Stock; use PrestaShopBundle\Entity\ProductIdentity; class Movement { /** * @var ProductIdentity */ private $productIdentity; /** * @var int */ private $delta; public function __construct(ProductIdentity $productIdentity, $delta) { $this->productIdentity = $productIdentity; $this->delta = (int) $delta; } /** * @return ProductIdentity */ public function getProductIdentity() { return $this->productIdentity; } /** * @return int */ public function getDelta() { return $this->delta; } }