* @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) */ namespace PrestaShop\PrestaShop\Adapter\Supplier; use SupplyOrder; /** * Class SupplierOrderValidator is responsible for handling supplier and its corresponding order validity. */ class SupplierOrderValidator { /** * Checks if the given supplier has pending orders. * * @param int $supplierId * * @return bool */ public function hasPendingOrders($supplierId) { return SupplyOrder::supplierHasPendingOrders($supplierId); } }