Passed
Push — main ( 38376b...7b37bf )
by N.
03:15
created

Radera   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
eloc 5
dl 0
loc 15
ccs 0
cts 6
cp 0
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A radera_omgång() 0 3 1
A radera_sekvens() 0 3 1
1
<?php
2
3
/**
4
 * Klass Radera.
5
 * @author Niklas Dougherty
6
 */
7
8
declare(strict_types=1);
9
10
namespace Tips\Moduler\System;
11
12
use Tips\Klasser\Speltyp;
13
14
/**
15
 * Klass Radera.
16
 */
17
class Radera extends Hamta {
18
	/**
19
	 * Radera omgång.
20
	 */
21
	public function radera_omgång(int $omgång, Speltyp $speltyp): void {
22
		$this->odds->spel->db->radera_omgång('system', $omgång, $speltyp);
23
		$this->odds->spel->db->logg->logga(self::class . ": ✅ Raderade system. ({$this->odds->spel->omgång})");
24
	}
25
26
	/**
27
	 * Radera sekvens.
28
	 */
29
	public function radera_sekvens(int $omgång, Speltyp $speltyp, int $sekvens): void {
30
		$this->odds->spel->db->radera_sekvens('system', $omgång, $speltyp, $sekvens);
31
		$this->odds->spel->db->logg->logga(self::class . ": ✅ Raderade system. ({$this->odds->spel->omgång}-{$this->odds->spel->sekvens})");
32
	}
33
}
34