Total Complexity | 4 |
Total Lines | 20 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
5 | class CharData { |
||
6 | |||
7 | private string $string; |
||
8 | private bool $eof; |
||
9 | |||
10 | 15 | public function __construct( string $string, bool $eof ) { |
|
11 | 15 | $this->string = $string; |
|
12 | 15 | $this->eof = $eof; |
|
13 | } |
||
14 | |||
15 | 15 | public function getString() : string { |
|
16 | 15 | return $this->string; |
|
17 | } |
||
18 | |||
19 | 15 | public function isEof() : bool { |
|
21 | } |
||
22 | |||
23 | 15 | public function length() : int { |
|
28 |