Passed
Push — master ( 4e3abd...c23c95 )
by Jesse
02:09
created

Decks   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 4
dl 0
loc 16
rs 10
c 1
b 0
f 1
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A offsetGet() 0 3 1
A current() 0 3 1
1
<?php declare(strict_types=1);
2
3
namespace Stratadox\CardGame\Match;
4
5
use Stratadox\ImmutableCollection\ImmutableCollection;
6
7
final class Decks extends ImmutableCollection
8
{
9
    public function __construct(Deck ...$decks)
10
    {
11
        parent::__construct(...$decks);
12
    }
13
14
    public function offsetGet($position): Deck
15
    {
16
        return parent::offsetGet($position);
17
    }
18
19
    /** @codeCoverageIgnore only used for type hinting */
20
    public function current(): Deck
21
    {
22
        return parent::current();
23
    }
24
}
25