Completed
Push — master ( 689ba3...487dca )
by Richard
05:45
created

AsWellAs::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 4

Duplication

Lines 5
Ratio 100 %

Code Coverage

Tests 5
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 5
loc 5
ccs 5
cts 5
cp 1
rs 9.4285
nc 1
cc 1
eloc 4
nop 3
crap 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 licence along with the code.
9
 */
10
11
namespace Lechimp\Dicto\Variables;
12
13
class AsWellAs extends Compound {
14
    /**
15
     * @inheritdoc
16
     */
17
    public function explain($text) {
18
        $v = new AsWellAs($this->name(), $this->left, $this->right);
0 ignored issues
show
Bug introduced by
The property left cannot be accessed from this context as it is declared private in class Lechimp\Dicto\Variables\Compound.

This check looks for access to properties that are not accessible from the current context.

If you need to make a property accessible to another context you can either raise its visibility level or provide an accessible getter in the defining class.

Loading history...
Bug introduced by
The property right cannot be accessed from this context as it is declared private in class Lechimp\Dicto\Variables\Compound.

This check looks for access to properties that are not accessible from the current context.

If you need to make a property accessible to another context you can either raise its visibility level or provide an accessible getter in the defining class.

Loading history...
19
        $v->setExplanation($text);
20
        return $v;
21
    }
22
}
23