Completed
Push — dev ( 4e6f9a...6e9c7d )
by Yan
04:26 queued 02:24
created

Event::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 2
dl 0
loc 4
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
    public function __construct(Model $model, File $file)
30
    {
31
        $this->model = $model;
32
        $this->file = $file;
33
    }
34
}
35