AbstractImpersonationEvent   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 39
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
dl 0
loc 39
ccs 5
cts 5
cp 1
c 0
b 0
f 0
rs 10
wmc 1
lcom 0
cbo 3

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Arcanedev\LaravelImpersonator\Events;
6
7
use Arcanedev\LaravelImpersonator\Contracts\Impersonatable;
8
use Illuminate\Broadcasting\InteractsWithSockets;
9
use Illuminate\Foundation\Events\Dispatchable;
10
use Illuminate\Queue\SerializesModels;
11
12
/**
13
 * Class     AbstractImpersonationEvent
14
 *
15
 * @author   ARCANEDEV <[email protected]>
16
 */
17
abstract class AbstractImpersonationEvent
18
{
19
    /* -----------------------------------------------------------------
20
     |  Traits
21
     | -----------------------------------------------------------------
22
     */
23
24 1
    use Dispatchable,
25
        InteractsWithSockets,
26
        SerializesModels;
27
28
    /* -----------------------------------------------------------------
29
     |  Properties
30
     | -----------------------------------------------------------------
31
     */
32
33
    /** @var \Arcanedev\LaravelImpersonator\Contracts\Impersonatable */
34
    public $impersonater;
35
36
    /** @var \Arcanedev\LaravelImpersonator\Contracts\Impersonatable */
37
    public $impersonated;
38
39
    /* -----------------------------------------------------------------
40
     |  Constructor
41
     | -----------------------------------------------------------------
42
     */
43
44
    /**
45
     * AbstractImpersonationEvent constructor.
46
     *
47
     * @param  \Arcanedev\LaravelImpersonator\Contracts\Impersonatable|mixed  $impersonater
48
     * @param  \Arcanedev\LaravelImpersonator\Contracts\Impersonatable|mixed  $impersonated
49
     */
50 32
    public function __construct(Impersonatable $impersonater, Impersonatable $impersonated)
51
    {
52 32
        $this->impersonater = $impersonater;
53 32
        $this->impersonated = $impersonated;
54 32
    }
55
}
56