Completed
Push — master ( 2e6f46...d7b6ad )
by Ondřej
03:21
created

RelationRecipe   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 2
dl 0
loc 17
c 0
b 0
f 0
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A limit() 0 4 1
A where() 0 4 1
A sort() 0 4 1
1
<?php
2
namespace Ivory\Query;
3
4
use Ivory\Exception\NotImplementedException;
5
6
abstract class RelationRecipe implements IRelationRecipe
7
{
8
    public function limit($limit, int $offset = 0): IRelationRecipe
9
    {
10
        return new LimitedRelationRecipe($this, $limit, $offset);
11
    }
12
13
    public function where($cond, ...$args): IRelationRecipe
14
    {
15
        throw new NotImplementedException();
16
    }
17
18
    public function sort(...$sortExpressions): IRelationRecipe
19
    {
20
        throw new NotImplementedException();
21
    }
22
}
23