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

Everything::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 3
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
crap 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