| Total Complexity | 5 |
| Total Lines | 67 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | final class FileGeneratedEvent extends Event |
||
| 19 | { |
||
| 20 | /** |
||
| 21 | * @var string |
||
| 22 | */ |
||
| 23 | protected $filePath; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @var string |
||
| 27 | */ |
||
| 28 | protected $stubName; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @var array |
||
| 32 | */ |
||
| 33 | protected $stubOptions; |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @var string |
||
| 37 | */ |
||
| 38 | protected $generationClass; |
||
| 39 | |||
| 40 | /** |
||
| 41 | 12 | * FileGeneratedEvent constructor. |
|
| 42 | * @param string $filePath |
||
| 43 | 12 | * @param string $stubName |
|
| 44 | 12 | * @param array $stubOptions |
|
| 45 | 12 | * @param string $generationClass |
|
| 46 | 12 | */ |
|
| 47 | public function __construct(string $filePath, string $stubName, array $stubOptions, string $generationClass) |
||
| 48 | { |
||
| 49 | $this->filePath = $filePath; |
||
| 50 | $this->stubName = $stubName; |
||
| 51 | 9 | $this->stubOptions = $stubOptions; |
|
| 52 | $this->generationClass = $generationClass; |
||
| 53 | 9 | } |
|
| 54 | |||
| 55 | /** |
||
| 56 | * @return string |
||
| 57 | */ |
||
| 58 | public function getFilePath(): string |
||
| 61 | 12 | } |
|
| 62 | |||
| 63 | /** |
||
| 64 | * @return string |
||
| 65 | */ |
||
| 66 | public function getStubName(): string |
||
| 67 | 9 | { |
|
| 68 | return $this->stubName; |
||
| 69 | 9 | } |
|
| 70 | |||
| 71 | /** |
||
| 72 | * @return array |
||
| 73 | */ |
||
| 74 | public function getStubOptions(): array |
||
| 75 | { |
||
| 76 | return $this->stubOptions; |
||
| 77 | } |
||
| 78 | |||
| 79 | /** |
||
| 80 | * @return string |
||
| 81 | */ |
||
| 82 | public function getGenerationClass(): string |
||
| 85 | } |
||
| 86 | |||
| 87 | |||
| 88 | } |
||
| 89 |