R_12_0_27702_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_12_0_27702_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_12_0_27702_1.
16
 * Östergård, P. 1993.
17
 */
18
class R_12_0_27702_1 {
19
	/**
20
	 * @var string[]
21
	 */
22
	public array $kod;
23
24
	/**
25
	 * Initiera.
26
	 */
27 1
	public function __construct() {
28 1
		$klass = (new ReflectionClass($this))->getShortName();
29 1
		if ($fil = file(__DIR__ . "/$klass.txt", FILE_IGNORE_NEW_LINES)) {
30 1
			$this->kod = $fil;
31
		}
32
	}
33
}
34