LexerTokenFactory   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A buildLexerToken() 0 5 1
1
<?php
2
3
4
namespace CondParse;
5
6
7
class LexerTokenFactory
8
{
9
    /**
10
     * @param string $token
11
     * @param mixed $value
12
     * @return LexerToken
13
     */
14 14
    public function buildLexerToken($token, $value)
15
    {
16
        // TODO: some flyweight like pattern?
0 ignored issues
show
Coding Style Best Practice introduced by
Comments for TODO tasks are often forgotten in the code; it might be better to use a dedicated issue tracker.
Loading history...
17 14
        return new LexerToken($token, $value);
18
    }
19
}
20