Completed
Branch 0.8-dev (c4d6ef)
by Kacper
02:50
created

MetaToken   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Test Coverage

Coverage 0%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A processStart() 0 6 1
1
<?php
2
/**
3
 * Highlighter
4
 *
5
 * Copyright (C) 2016, Some right reserved.
6
 *
7
 * @author Kacper "Kadet" Donat <[email protected]>
8
 *
9
 * Contact with author:
10
 * Xmpp: [email protected]
11
 * E-mail: [email protected]
12
 *
13
 * From Kadet with love.
14
 */
15
16
namespace Kadet\Highlighter\Parser\Token;
17
18
use Kadet\Highlighter\Language\Language;
19
use Kadet\Highlighter\Parser\Result;
20
use Kadet\Highlighter\Parser\TokenIterator;
21
22
class MetaToken extends Token
23
{
24
    protected function processStart(array &$context, Language $language, Result $result, TokenIterator $tokens)
25
    {
26
        $context[$tokens->key()] = $this->name;
27
        
28
        return true;
29
    }
30
}
31