Completed
Push — master ( b1744c...51aee2 )
by Matze
04:34
created

Token::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 5
ccs 0
cts 4
cp 0
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 2
crap 2
1
<?php
2
3
namespace Translation;
4
5
class Token
6
{
7
8
    /**
9
     * @var string
10
     */
11
    public $token;
12
13
    /**
14
     * @var string
15
     */
16
    public $comment;
17
18
    /**
19
     * @param string $token
20
     * @param string $comment
21
     */
22
    public function __construct(string $token, string $comment = '')
23
    {
24
        $this->token   = $token;
25
        $this->comment = $comment;
26
    }
27
}
28