Test Setup Failed
Push — master ( 647a95...23a558 )
by Jesse
02:13
created

CardTemplate   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A type() 0 3 1
1
<?php declare(strict_types=1);
2
3
namespace Stratadox\CardGame\ReadModel\Match;
4
5
final class CardTemplate
6
{
7
    private $id;
8
9
    public function __construct(string $id)
10
    {
11
        $this->id = $id;
12
    }
13
14
    public function type(): string
15
    {
16
        return $this->id;
17
    }
18
}
19