Completed
Push — 2.1 ( 75349f...bf116e )
by Alexander
29:27
created

ActiveFieldEvent   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 19
ccs 4
cts 4
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
1
<?php
2
/**
3
 * @link http://www.yiiframework.com/
4
 * @copyright Copyright (c) 2008 Yii Software LLC
5
 * @license http://www.yiiframework.com/license/
6
 */
7
8
namespace yii\widgets;
9
10
use yii\base\Event;
11
12
/**
13
 * ActiveFieldEvent represents the event parameter used for an active field event.
14
 *
15
 * @property ActiveForm $sender the sender of this event.
16
 *
17
 * @author Paul Klimov <[email protected]>
18
 * @since 2.1
19
 */
20
class ActiveFieldEvent extends Event
21
{
22
    /**
23
     * @var ActiveField related active field instance
24
     */
25
    public $field;
26
27
28
    /**
29
     * Constructor.
30
     * @param ActiveField $field the active field associated with this event.
31
     * @param array $config name-value pairs that will be used to initialize the object properties
32
     */
33 16
    public function __construct($field, $config = [])
34
    {
35 16
        $this->field = $field;
36 16
        parent::__construct($config);
37
    }
38
}