Completed
Push — master ( 06202b...97cefe )
by Antonio
18s queued 11s
created

ProfileEvent::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 6
ccs 4
cts 4
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 2
crap 1
1
<?php
2
3
/*
4
 * This file is part of the 2amigos/yii2-usuario project.
5
 *
6
 * (c) 2amigOS! <http://2amigos.us/>
7
 *
8
 * For the full copyright and license information, please view
9
 * the LICENSE file that was distributed with this source code.
10
 */
11
12
namespace Da\User\Event;
13
14
use Da\User\Model\Profile;
15
use yii\base\Event;
16
17
/**
18
 * @property-read Profile $profile
19
 */
20
class ProfileEvent extends Event
21
{
22
    protected $profile;
23
24 1
    public function __construct(Profile $profile, array $config = [])
25
    {
26 1
        $this->profile = $profile;
27
28 1
        parent::__construct($config);
29 1
    }
30
31
    public function getProfile()
32
    {
33
        return $this->profile;
34
    }
35
}
36