R_10_3_25272_1   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 5
dl 0
loc 13
ccs 4
cts 4
cp 1
rs 10
c 0
b 0
f 0
wmc 2

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 2
1
<?php
2
3
/**
4
 * Klass R_10_3_25272_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_10_3_25272_1.
16
 * Hämäläinen, H.; Östergård, P. 1993.
17
 */
18
class R_10_3_25272_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