src/Repositories/Criteria/Primitives/WhereCriterion.php
<?php
namespace EscolaLms\Core\Repositories\Criteria\Primitives;
use EscolaLms\Core\Repositories\Criteria\Criterion;
use Illuminate\Database\Eloquent\Builder;
class WhereCriterion extends Criterion
{
public function apply(Builder $query): Builder
{
return $query->where($this->key, $this->operator, $this->value);
}
}