Positioned::getBraced()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
1
<?php
2
3
namespace kalanis\kw_modules\Parser;
4
5
6
/**
7
 * Class Positioned
8
 * @package kalanis\kw_modules\Parser
9
 * Single record with position data
10
 */
11
class Positioned
12
{
13
    protected string $braced = '';
14
    protected string $inner = '';
15
    protected int $position = 0;
16
17 8
    public function __construct(string $braced, string $inner, int $position = 0)
18
    {
19 8
        $this->braced = $braced;
20 8
        $this->inner = $inner;
21 8
        $this->position = $position;
22 8
    }
23
24 8
    public function getBraced(): string
25
    {
26 8
        return $this->braced;
27
    }
28
29 8
    public function getInner(): string
30
    {
31 8
        return $this->inner;
32
    }
33
34 5
    public function getPos(): int
35
    {
36 5
        return $this->position;
37
    }
38
}
39