Completed
Pull Request — master (#457)
by Claus
02:40
created

Source   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
dl 0
loc 13
rs 10
c 0
b 0
f 0
wmc 1
lcom 0
cbo 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
1
<?php
2
declare(strict_types=1);
3
4
namespace TYPO3Fluid\Fluid\Core\Parser;
5
6
class Source
7
{
8
    public $source = '';
9
    public $bytes = [];
10
    public $length = 0;
11
12
    public function __construct(string $source)
13
    {
14
        $this->source = $source;
15
        $this->bytes = unpack('C*', $source);
16
        $this->length = count($this->bytes);
17
    }
18
}
19