Token   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 6
c 1
b 0
f 0
dl 0
loc 10
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 1
1
<?php
2
3
/*
4
 * To change this license header, choose License Headers in Project Properties.
5
 * To change this template file, choose Tools | Templates
6
 * and open the template in the editor.
7
 */
8
9
namespace Maslosoft\Whitelist\Tokenizer\Tokens;
10
11
use Maslosoft\Whitelist\Interfaces\TokenInterface;
12
use Maslosoft\Whitelist\Tokenizer\AbstractToken;
13
14
/**
15
 * Token
16
 *
17
 * @author Piotr Maselkowski <pmaselkowski at gmail.com>
18
 */
19
class Token extends AbstractToken implements TokenInterface
20
{
21
22
	public function __construct(&$data, &$tokens, $index)
23
	{
24
		$this->tokens = &$tokens;
25
		$this->index = $index;
26
		$this->type = $data[0];
27
		$this->value = $data[1];
28
		$this->line = $data[2];
29
	}
30
31
}
32