EnumWasRegistered   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
/**
6
 * Contains the EnumWasRegistered class.
7
 *
8
 * @copyright   Copyright (c) 2017 Attila Fulop
9
 * @author      Attila Fulop
10
 * @license     MIT
11
 * @since       2017-09-15
12
 *
13
 */
14
15
namespace Konekt\Concord\Events;
16
17
/**
18
 * Event that gets fired in case an enum gets registered
19
 */
20
class EnumWasRegistered
21
{
22
    /** @var  string */
23
    public $abstract;
24
25
    /** @var  string */
26
    public $concrete;
27
28
    public function __construct($abstract, $concrete)
29
    {
30
        $this->abstract = $abstract;
31
        $this->concrete = $concrete;
32
    }
33
}
34