Locker\Repository\Statement\EloquentIndexer::count PHP Method

count() public method

Counts statements.
public count ( Jenssegers\Mongodb\Eloquent\Builder $builder, IndexOptions $opts ) : Int
$builder Jenssegers\Mongodb\Eloquent\Builder
$opts IndexOptions
return Int Number of statements in Builder.
    public function count(Builder $builder, IndexOptions $opts)
    {
        return $builder->count(['lrs_id' => 1], ['lrs_id' => 1, 'active' => -1, 'voided' => 1]);
    }