Test Failed
Push — master ( 3b4c09...efb6fb )
by Richard
02:50
created

Except   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A left() 0 3 1
A right() 0 3 1
1
<?php
2
/******************************************************************************
3
 * An implementation of dicto (scg.unibe.ch/dicto) in and for PHP.
4
 *
5
 * Copyright (c) 2016, 2015 Richard Klees <[email protected]>
6
 *
7
 * This software is licensed under The MIT License. You should have received
8
 * a copy of the license along with the code.
9
 */
10
11
namespace Lechimp\Dicto\Definition\AST;
12
13
/**
14
 * An except-definition.
15
 */
16
class Except extends Definition { 
17
    /**
18
     * @var Definition
19
     */
20
    protected  $left;
21
22
    /**
23
     * @var Definition
24
     */
25
    protected  $right;
26
27
    public function __construct(Definition $left, Definition $right) {
28
        $this->left = $left;
29
        $this->right = $right;
30
    }
31
32
    /**
33
     * @return Definition
34
     */
35
    public function left() {
36
        return $this->left;
37
    }
38
39
    /**
40
     * @return Definition
41
     */
42
    public function right() {
43
        return $this->right;
44
    }
45
}
46