<?php

namespace App\Repositories\Eloquent\Criteria;

use Illuminate\Database\Eloquent\Builder;
use Prettus\Repository\Contracts\CriteriaInterface;
use Prettus\Repository\Contracts\RepositoryInterface;

/**
 * Class SuggestedCriteria
 */
final class SuggestedCriteria implements CriteriaInterface
{
    /**
     * @param  Builder  $model
     */
    public function apply($model, RepositoryInterface $repository): Builder
    {
        return $model->where('odporucane', '=', true);
    }
}
