DataEvent   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 28
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
1
<?php
2
3
namespace yiicod\listener\components\events;
4
5
use yii\base\Event;
6
use yii\base\BaseObject;
7
8
class DataEvent extends Event
9
{
10
    /**
11
     * Owner object
12
     *
13
     * @var BaseObject
14
     */
15
    public $owner = null;
16
17
    /**
18
     * Additional data for event
19
     *
20
     * @var []
21
     */
22
    public $params = [];
23
24
    /**
25
     * Constructor.
26
     *
27
     * @param mixed $owner the object associated with this event
28
     * @param array $config name-value pairs that will be used to initialize the object properties
29
     */
30
    public function __construct($owner, $config = [])
31
    {
32
        $this->owner = $owner;
33
        parent::__construct($config);
34
    }
35
}
36