ModelWasBanned   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 5
dl 0
loc 20
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php
2
3
/*
4
 * This file is part of Laravel Ban.
5
 *
6
 * (c) Anton Komarev <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
declare(strict_types=1);
13
14
namespace Cog\Laravel\Ban\Events;
15
16
use Cog\Contracts\Ban\Ban as BanContract;
17
use Cog\Contracts\Ban\Bannable as BannableContract;
18
use Illuminate\Contracts\Queue\ShouldQueue;
19
20
class ModelWasBanned implements ShouldQueue
21
{
22
    /**
23
     * @var \Cog\Contracts\Ban\Bannable
24
     */
25
    public $model;
26
27
    /**
28
     * @var \Cog\Contracts\Ban\Ban
29
     */
30
    public $ban;
31
32
    /**
33
     * @param \Cog\Contracts\Ban\Bannable $bannable
34
     * @param \Cog\Contracts\Ban\Ban $ban
35
     */
36
    public function __construct(BannableContract $bannable, BanContract $ban)
37
    {
38
        $this->model = $bannable;
39
        $this->ban = $ban;
40
    }
41
}
42