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

FileWasRenamed   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 7
c 1
b 0
f 1
dl 0
loc 22
rs 10
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A newPath() 0 3 1
A oldPath() 0 3 1
A __construct() 0 4 1
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