Tabell::tabell()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 18
Code Lines 16

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 16
nc 1
nop 5
dl 0
loc 18
ccs 0
cts 16
cp 0
crap 2
rs 9.7333
c 0
b 0
f 0
1
<?php
2
3
/**
4
 * Klass Tabell.
5
 * @author Niklas Dougherty
6
 */
7
8
declare(strict_types=1);
9
10
namespace Tips\Klasser\Investera;
11
12
/**
13
 * Klass Tabell.
14
 */
15
class Tabell extends PlottaAck {
16
	/**
17
	 * Eka ut tabell.
18
	 * Enskild tabell med momentana data för omgång.
19
	 */
20
	protected function tabell(int|string $andel, string $s13, string $s12, string $s11, string $s10): string {
21
		$th_rad = (new THRad())->th_rad();
22
23
		return <<< EOT
24
						<p>Investerat i omgång {$this->tips->utdelning->spel->omgång}:</p>
25
						<table>
26
$th_rad 							<tr class="höger">
27
								<td>{$this->tips->utdelning->spel->omgång}</td>
28
								<td>{$this->tips->utdelning->spel->speltyp->produktnamn()}</td>
29
								<td>{$this->tips->utdelning->spel->sekvens}</td>
30
								<td>{$this->antal_utvalda_rader}</td>
31
								<td>{$this->antal_genererade}</td>
32
								<td>$andel</td>
33
								<td>{$this->vinst}</td>
34
								<td$s13>{$this->vinstdata[13]}</td>
35
								<td$s12>{$this->vinstdata[12]}</td>
36
								<td$s11>{$this->vinstdata[11]}</td>
37
								<td$s10>{$this->vinstdata[10]}</td>
38
							</tr>
39
						</table>
40
41
EOT;
42
	}
43
}
44