* @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) */ namespace PrestaShop\PrestaShop\Core\Domain\Supplier\Command; use PrestaShop\PrestaShop\Core\Domain\Supplier\Exception\SupplierException; use PrestaShop\PrestaShop\Core\Domain\Supplier\ValueObject\SupplierId; /** * Class DeleteSupplierCommand is responsible for deleting the supplier. */ class DeleteSupplierCommand { /** * @var SupplierId */ private $supplierId; /** * @param int $supplierId * * @throws SupplierException */ public function __construct($supplierId) { $this->supplierId = new SupplierId($supplierId); } /** * @return SupplierId */ public function getSupplierId() { return $this->supplierId; } }