| Total Complexity | 2 |
| Total Lines | 43 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | class Utdelningsdata { |
||
| 19 | public int $år = 0; |
||
| 20 | public int $vecka = 0; |
||
| 21 | public string $tipsrad = ''; // tecken 1X2 |
||
| 22 | public string $tipsrad_012 = ''; // numerisk motsvarighet 012 |
||
| 23 | public bool $har_tipsrad = false; |
||
| 24 | /** |
||
| 25 | * @var int[] $utdelning |
||
| 26 | */ |
||
| 27 | public array $utdelning = [0, 0, 0, 0]; // 13, 12, 11, 10 r |
||
| 28 | /** |
||
| 29 | * @var int[] $vinnare |
||
| 30 | */ |
||
| 31 | public array $vinnare = [0, 0, 0, 0]; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Initiera. |
||
| 35 | */ |
||
| 36 | 14 | public function __construct(public Spel $spel) { |
|
| 37 | 14 | } |
|
| 38 | |||
| 39 | /** |
||
| 40 | * Hämta utdelningsdata. |
||
| 41 | * @return array<string, int> |
||
| 42 | */ |
||
| 43 | 1 | public function utdelningsdata(int $u13_min = 0, int $u13_max = MAXVINST): array { |
|
| 63 |