DataEvent::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 2
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