Passed
Push — main ( d29be2...38376b )
by N.
03:16
created

Radera::radera_sekvens()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 3
dl 0
loc 3
ccs 3
cts 3
cp 1
crap 1
rs 10
c 0
b 0
f 0
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 1
	public function radera_sekvens(int $omgång, Speltyp $speltyp, int $sekvens): void {
30 1
		$this->odds->spel->db->radera_sekvens('system', $omgång, $speltyp, $sekvens);
31 1
		$this->odds->spel->db->logg->logga(self::class . ": ✅ Raderade system. ({$this->odds->spel->omgång}-{$this->odds->spel->sekvens})");
32
	}
33
}
34