FileStoring::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 5
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 6
ccs 5
cts 5
cp 1
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 4
nc 1
nop 3
crap 1
1
<?php namespace Arcanesoft\Media\Events;
2
3
use Illuminate\Http\UploadedFile;
4
5
/**
6
 * Class     UploadedFileStoring
7
 *
8
 * @package  Arcanesoft\Media\Events
9
 * @author   ARCANEDEV <[email protected]>
10
 */
11
class FileStoring
12
{
13
    /* -----------------------------------------------------------------
14
     |  Properties
15
     | -----------------------------------------------------------------
16
     */
17
18
    /** @var  string */
19
    public $path;
20
21
    /** @var  \Illuminate\Http\UploadedFile */
22
    public $file;
23
24
    /** @var  array */
25
    public $options;
26
27
    /* -----------------------------------------------------------------
28
     |  Constructor
29
     | -----------------------------------------------------------------
30
     */
31
32
    /**
33
     * UploadedFileStoring constructor.
34
     *
35
     * @param  string                         $path
36
     * @param  \Illuminate\Http\UploadedFile  $file
37
     * @param  array                          $options
38
     */
39 8
    public function __construct($path, UploadedFile $file, $options)
40
    {
41 8
        $this->path    = $path;
42 8
        $this->file    = $file;
43 8
        $this->options = $options;
44 8
    }
45
}
46