Passed
Push — master ( e91c18...4ee6d3 )
by Stream
04:26
created

FileWasRenamed::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 1
eloc 2
c 1
b 0
f 1
nc 1
nop 2
dl 0
loc 4
rs 10
1
<?php
2
3
namespace UniSharp\LaravelFilemanager\Events;
4
5
class FileWasRenamed
6
{
7
    private $old_path;
8
    private $new_path;
9
10
    public function __construct($old_path, $new_path)
11
    {
12
        $this->old_path = $old_path;
13
        $this->new_path = $new_path;
14
    }
15
16
    /**
17
     * @return string
18
     */
19
    public function oldPath()
20
    {
21
        return $this->old_path;
22
    }
23
24
    public function newPath()
25
    {
26
        return $this->new_path;
27
    }
28
}
29