ModelWasUnbanned   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 13
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 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\Bannable as BannableContract;
17
use Illuminate\Contracts\Queue\ShouldQueue;
18
19
class ModelWasUnbanned implements ShouldQueue
20
{
21
    /**
22
     * @var \Cog\Contracts\Ban\Bannable
23
     */
24
    public $model;
25
26
    /**
27
     * @param \Cog\Contracts\Ban\Bannable $model
28
     */
29
    public function __construct(BannableContract $model)
30
    {
31
        $this->model = $model;
32
    }
33
}
34