Card   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 2
Bugs 0 Features 0
Metric Value
eloc 4
c 2
b 0
f 0
dl 0
loc 22
rs 10
ccs 4
cts 4
cp 1
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A getValue() 0 3 1
1
<?php
2
3
namespace App\Card;
4
5
use App\Card\DeckOfCards;
6
7
/**
8
 * Methods for Card class.
9
 */
10
class Card
11
{
12
    /**
13
     * @var string[]
14
     */
15
    protected array $value;
16
17
    /**
18
     * @param string[] $card
19
     */
20 13
    public function __construct(array $card)
21
    {
22 13
        $this->value = $card;
23
    }
24
25
    /**
26
     * Get the value of the current card.
27
     * @return string[]
28
     */
29 9
    public function getValue(): array
30
    {
31 9
        return $this->value;
32
    }
33
}
34