<?php
/**
 * @package   Essentials YOOtheme Pro 2.3.4 build 0217.0955
 * @author    ZOOlanders https://www.zoolanders.com
 * @copyright Copyright (C) Joolanders, SL
 * @license   http://www.gnu.org/licenses/gpl.html GNU/GPL
 */

namespace ZOOlanders\YOOessentials\Source\Resolver\Orders;

class InMemoryOrders extends Orders
{
    /**
     * @var InMemoryOrder[]
     */
    protected array $orders;

    public function apply(array $recordA, array $recordB): int
    {
        foreach ($this->orders as $order) {
            return $order->apply($recordA, $recordB);
        }

        return 0;
    }
}
