Completed
Push — master ( 6e4050...7b7583 )
by Scott
03:00
created

DesmondSpecialFunction   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
run() 0 1 ?
A value() 0 4 1
1
<?php
2
namespace Desmond\functions;
3
4
abstract class DesmondSpecialFunction
5
{
6
    public $function;
7
    public $currentEnv;
8
    public $eval;
9
    abstract public function run(array $args);
10
    public function value()
11
    {
12
        return 'lang-func: ' . $this->id();
0 ignored issues
show
Bug introduced by
The method id() does not seem to exist on object<Desmond\functions\DesmondSpecialFunction>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
13
    }
14
}
15