CardJoker   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
1
<?php
2
3
namespace App\Card;
4
5
/**
6
 * Class CardJoker extends the standard Deck by adding two Joker cards.
7
 */
8
class CardJoker extends Deck
9
{
10
    /**
11
     * CardJoker constructor.
12
     * Add Jokers to the deck.
13
     */
14 6
    public function __construct()
15
    {
16 6
        parent::__construct();
17
18 6
        $this->cards[] = new Card('🂿', 'Joker');
19 6
        $this->cards[] = new Card('🂿', 'Joker');
20
    }
21
}
22