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

LexerTokenFactory::buildLexerToken()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 5
ccs 2
cts 2
cp 1
rs 9.4285
cc 1
eloc 2
nc 1
nop 2
crap 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