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}

Paths

Below are the source code lines that represent each code path as identified by Xdebug. Please note a path is not necessarily coterminous with a line, a line may contain multiple paths and therefore show up more than once. Please also be aware that some paths may include implicit rather than explicit branches, e.g. an if statement always has an else as part of its logical flow even if you didn't write one.