ProfileEvent::getForm()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
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