ConnectEvent   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 44
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getForm() 0 3 1
A setForm() 0 3 1
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