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

Parenthesis   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A operate() 0 2 1
A isParenthesis() 0 3 1
A isOpen() 0 3 1
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