Code Coverage
 
Lines
Branches
Paths
Functions and Methods
Classes and Traits
Total
n/a
0 / 0
n/a
0 / 0
n/a
0 / 0
n/a
0 / 0
CRAP
n/a
0 / 0
1<?php
2
3namespace App\Specification;
4
5/**
6 * @author Wilhelm Zwertvaegher
7 *
8 * This interface exposes some methods used to enable query configuration by the WordCriteriaService
9 * It is not designed to be  "QueryBuilder" agnostic, only to provide a way to improve WordCriteriaService testability
10 * by allowing us to write a fake builder to check the configuration effects on the QueryBuilder instead of how it is done
11 */
12interface QueryBuilderInterface
13{
14    public function andWhere(string $where): self;
15
16    public function setParameter(string $field, mixed $value): self;
17
18    public function setFirstResult(int $firstResult): self;
19
20    public function setMaxResults(int $maxResult): self;
21
22    public function count(string $field): int;
23}