Completed
Push — master ( 6a8856...a11be9 )
by Michal
03:24
created

Parenthesis::getPrecidence()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
namespace SimpleMath;
3
4
class Parenthesis extends TerminalExpression {
5
6
    protected $precidence = 6;
7
8
    public function operate(Stack $stack, $variables=array()) {
9
    }
10
11
    public function isParenthesis() {
12
        return true;
13
    }
14
15
    public function isOpen() {
16
        return $this->value == '(';
17
    }
18
19
}
20
21