Passed
Pull Request — master (#9)
by ANTHONIUS
02:18
created

RestoreEvent   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 36
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 4
dl 0
loc 36
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A setPatches() 0 3 1
A getPatches() 0 3 1
A setFiles() 0 3 1
A getFiles() 0 3 1
1
<?php
2
3
/*
4
 * This file is part of the dotfiles project.
5
 *
6
 *     (c) Anthonius Munthi <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Dotfiles\Core\Event;
13
14
use Symfony\Component\EventDispatcher\Event;
15
16
class RestoreEvent extends Event
17
{
18
    /**
19
     * @var array
20
     */
21
    private $files;
22
23
    /**
24
     * @var array
25
     */
26
    private $patches;
27
28
    /**
29
     * @return array
30
     */
31
    public function getFiles(): array
32
    {
33
        return $this->files;
34
    }
35
36
    /**
37
     * @return array
38
     */
39
    public function getPatches(): array
40
    {
41
        return $this->patches;
42
    }
43
44
    public function setFiles(array $files)
45
    {
46
        $this->files = $files;
47
    }
48
49
    public function setPatches(array $patches)
50
    {
51
        $this->patches = $patches;
52
    }
53
}
54