Passed
Push — master ( b3b4c7...2fd2da )
by Arthur
24:27
created

FileGeneratedEvent::getStubName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: arthur
5
 * Date: 10.03.19
6
 * Time: 20:15
7
 */
8
9
namespace Foundation\Generator\Events;
10
11
12
use Foundation\Abstracts\Events\Event;
13
14
/**
15
 * Class FileGeneratedEvent
16
 * @package Foundation\Generator\Events
17
 */
18
class FileGeneratedEvent extends Event
19
{
20
    /**
21
     * @var string
22
     */
23
    public $filePath;
24
25
    /**
26
     * @var string
27
     */
28
    public $stubName;
29
30
    /**
31
     * @var array
32
     */
33
    public $stubOptions;
34
35
    /**
36
     * FileGeneratedEvent constructor.
37
     * @param string $filePath
38
     * @param string $stubName
39
     * @param array $stubOptions
40
     */
41
    public function __construct(string $filePath, string $stubName, array $stubOptions)
42
    {
43
        $this->filePath = $filePath;
44
        $this->stubName = $stubName;
45
        $this->stubOptions = $stubOptions;
46
    }
47
48
    /**
49
     * @return string
50
     */
51
    public function getFilePath(): string
52
    {
53
        return $this->filePath;
54
    }
55
56
    /**
57
     * @return string
58
     */
59
    public function getStubName(): string
60
    {
61
        return $this->stubName;
62
    }
63
64
    /**
65
     * @return array
66
     */
67
    public function getStubOptions(): array
68
    {
69
        return $this->stubOptions;
70
    }
71
}
72