Completed
Push — 2.0 ( 9c7316...737838 )
by Hannes
03:08
created

Set   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php
2
3
declare(strict_types = 1);
4
5
namespace hanneskod\yaysondb\Expression;
6
7
/**
8
 * Evaluate expression for each item in list
9
 */
10
abstract class Set implements ExpressionInterface
11
{
12
    /**
13
     * @var ExpressionInterface Loaded expression
14
     */
15
    protected $expr;
16
17
    /**
18
     * Set expression to validate all list items against
19
     *
20
     * @param ExpressionInterface $expr
21
     */
22
    public function __construct(ExpressionInterface $expr)
23
    {
24
        $this->expr = $expr;
25
    }
26
}
27