R_0_11_192_1::__construct()   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 4
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 2

Importance

Changes 0
Metric Value
cc 2
eloc 3
nc 2
nop 0
dl 0
loc 4
ccs 4
cts 4
cp 1
crap 2
rs 10
c 0
b 0
f 0
1
<?php
2
3
/**
4
 * Klass R_0_11_192_1.
5
 * @author Niklas Dougherty
6
 */
7
8
declare(strict_types=1);
9
10
namespace Tips\Koder\R1;
11
12
use ReflectionClass;
13
14
/**
15
 * Klass R_0_11_192_1.
16
 */
17
class R_0_11_192_1 {
18
	/**
19
	 * @var string[]
20
	 */
21
	public array $kod;
22
23
	/**
24
	 * Initiera.
25
	 */
26 1
	public function __construct() {
27 1
		$klass = (new ReflectionClass($this))->getShortName();
28 1
		if ($fil = file(__DIR__ . "/$klass.txt", FILE_IGNORE_NEW_LINES)) {
29 1
			$this->kod = $fil;
30
		}
31
	}
32
}
33