Completed
Pull Request — master (#9)
by ARCANEDEV
06:45
created

FileStoring::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 5
c 0
b 0
f 0
ccs 4
cts 4
cp 1
rs 9.4285
cc 1
eloc 3
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  \Illuminate\Http\UploadedFile */
19
    public $file;
20
21
    /** @var  string */
22
    public $destination;
23
24
    /** @var  array */
25
    protected $options;
26
27
    /* -----------------------------------------------------------------
28
     |  Constructor
29
     | -----------------------------------------------------------------
30
     */
31
32
    /**
33
     * UploadedFileStoring constructor.
34
     *
35
     * @param  string                         $destination
36
     * @param  \Illuminate\Http\UploadedFile  $file
37
     * @param  array                          $options
38
     */
39 8
    public function __construct($destination, UploadedFile $file, $options)
0 ignored issues
show
Unused Code introduced by
The parameter $destination is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
40
    {
41 8
        $this->file    = $file;
42 8
        $this->options = $options;
43 8
    }
44
}
45