Event::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 2
dl 0
loc 4
ccs 3
cts 3
cp 1
crap 1
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Lincable\Eloquent\Events;
4
5
use Illuminate\Http\File;
6
use Illuminate\Database\Eloquent\Model;
7
8
abstract class Event
9
{
10
    /**
11
     * The model instance that failed the upload.
12
     *
13
     * @var \Illuminate\Database\Eloquent\Model
14
     */
15
    public $model;
16
17
    /**
18
     * The failure file.
19
     *
20
     * @var \Illuminate\Http\File
21
     */
22
    public $file;
23
24
    /**
25
     * Construtor da classe.
26
     *
27
     * @return void
28
     */
29 21
    public function __construct(Model $model, File $file)
30
    {
31 21
        $this->model = $model;
32 21
        $this->file = $file;
33 21
    }
34
}
35