Completed
Push — master ( a7556a...5a15ba )
by Richard
04:16
created

Everything   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 2
dl 0
loc 20
ccs 7
cts 7
cp 1
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A meaning() 0 3 1
A compile() 0 3 1
1
<?php
2
/******************************************************************************
3
 * An implementation of dicto (scg.unibe.ch/dicto) in and for PHP.
4
 * 
5
 * Copyright (c) 2016 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\Variables;
12
13
use Lechimp\Dicto\Graph\PredicateFactory;
14
15
class Everything extends Variable {
16 12
    public function __construct() {
17 12
        parent::__construct("Everything");
18 12
    }
19
20
    /**
21
     * @inheritdocs
22
     */
23 36
    public function meaning() {
24 36
        return "everything";
25
    }
26
27
    /**
28
     * @inheritdocs
29
     */
30
31 9
    public function compile(PredicateFactory $f) {
32 9
        return $f->_true();
33
    }
34
}
35
36