<?php

namespace App\Filter\Sorting;

use Illuminate\Database\Eloquent\Builder;
use Mtc\Filter\Contracts\IsSortOption;

class LeaseVehicleMonthlyPriceAscending implements IsSortOption
{
    /**
     * Perform sorting query adjustments
     *
     * @param Builder $query
     * @return Builder
     */
    public function handle(Builder $query): Builder
    {
        return $query->orderBy('cheapest_monthly_price_ex_vat');
    }
}
