ConnectEvent::setForm()   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 1
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 ConnectEvent
9
 *
10
 * Connect events applications
11
 **/
12
class ConnectEvent extends Event
13
{
14
    /**
15
     * event is triggered before connecting user to social account
16
     * triggered with \terabytesoft\events\user\ConnectEvent
17
     **/
18
    const BEFORE_CONNECT = '\terabytesoft\events\user\ConnectEvent::BEFORE_CONNECT';
19
    /**
20
     * event is triggered after connecting user to social account
21
     * triggered with \terabytesoft\events\user\ConnectEvent
22
     */
23
    const AFTER_CONNECT = '\terabytesoft\events\user\ConnectEvent::AFTER_CONNECT';
24
25
    /**
26
     * event is triggered before disconnecting social account from user
27
     * triggered with \terabytesoft\events\user\ConnectEvent
28
     */
29
    const BEFORE_DISCONNECT = '\terabytesoft\events\user\ConnectEvent::BEFORE_DISCONNECT';
30
31
    /**
32
     * event is triggered after disconnecting social account from user
33
     * triggered with \terabytesoft\events\user\ConnectEvent
34
     */
35
    const AFTER_DISCONNECT = '\terabytesoft\events\user\ConnectEvent::AFTER_DISCONNECT';
36
37
    /**
38
     * @var object $form
39
     */
40
    private $form;
41
42
    /**
43
     * getForm
44
     */
45 1
    public function getForm(): object
46
    {
47 1
        return $this->form;
48
    }
49
50
    /**
51
     * setForm
52
     */
53 1
    public function setForm(object $form): void
54
    {
55 1
        $this->form = $form;
56 1
    }
57
}
58