Total Complexity | 2 |
Total Lines | 29 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 2 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
5 | abstract class EnumWithIdAndName extends EnumWithId |
||
6 | { |
||
7 | /** |
||
8 | * The displayname for the instance. |
||
9 | * |
||
10 | * @var mixed |
||
11 | */ |
||
12 | protected $name; |
||
13 | |||
14 | /** |
||
15 | * AbstractEnumWithIdAndName constructor. |
||
16 | * |
||
17 | * @param $id |
||
18 | * @param $name |
||
19 | */ |
||
20 | 2 | public function __construct($id, $name) |
|
24 | 1 | } |
|
25 | |||
26 | /** |
||
27 | * Get the name attribute. |
||
28 | * |
||
29 | * @return mixed |
||
30 | */ |
||
31 | 2 | public function getName() |
|
36 |