ProfileEvent   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 33
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 6
c 1
b 0
f 0
dl 0
loc 33
ccs 4
cts 4
cp 1
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setForm() 0 3 1
A getForm() 0 3 1
1
<?php
2
3
namespace terabytesoft\events\user;
4
5
use yii\base\Event;
6
7
/**
8
 * Class ProfileEvent
9
 *
10
 * Profile events applications
11
 **/
12
class ProfileEvent extends Event
13
{
14
    /**
15
     * event is triggered before updating existing user's profile
16
     * triggered with \terabytesoft\events\user\ProfileEvent
17
     **/
18
    const BEFORE_PROFILE_UPDATE = '\terabytesoft\events\user\ProfileEvent::BEFORE_PROFILE_UPDATE';
19
20
    /**
21
     * event is triggered after updating existing user's profile
22
     * triggered with \terabytesoft\events\user\ProfileEvent
23
     **/
24
    const AFTER_PROFILE_UPDATE = '\terabytesoft\events\user\ProfileEvent::AFTER_PROFILE_UPDATE';
25
26
    /**
27
     * @var object $form
28
     */
29
    private $form;
30
31
    /**
32
     * getForm
33
     */
34 1
    public function getForm(): object
35
    {
36 1
        return $this->form;
37
    }
38
39
    /**
40
     * setForm
41
     */
42 1
    public function setForm(object $form): void
43
    {
44 1
        $this->form = $form;
45 1
    }
46
}
47