Completed
Push — master ( e5166b...56b74c )
by Ilias
02:47
created

LexerTokenFactory   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

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

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 18
    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 18
        return new LexerToken($token, $value);
18
    }
19
}
20