FileMoved::__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
/**
4
 * Class     FileMoved
5
 *
6
 * @package  Arcanesoft\Media\Events
7
 * @author   ARCANEDEV <[email protected]>
8
 */
9
class FileMoved
10
{
11
    /* -----------------------------------------------------------------
12
     |  Properties
13
     | -----------------------------------------------------------------
14
     */
15
16
    /** @var string */
17
    public $from;
18
19
    /** @var string */
20
    public $to;
21
22
    /** @var bool */
23
    public $moved;
24
25
    /* -----------------------------------------------------------------
26
     |  Constructor
27
     | -----------------------------------------------------------------
28
     */
29
30
    /**
31
     * FileMoved constructor.
32
     *
33
     * @param  string  $from
34
     * @param  string  $to
35
     * @param  bool    $moved
36
     */
37 8
    public function __construct($from, $to, $moved)
38
    {
39 8
        $this->from  = $from;
40 8
        $this->to    = $to;
41 8
        $this->moved = $moved;
42 8
    }
43
}
44