Lines
0.00%
0 / 1
Functions and Methods
0.00%
0 / 1
Classes and Traits
0.00%
0 / 1
| Name | Lines | Functions and Methods | CRAP | Classes and Traits | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| CodegenException | 0.00% | 0 / 1 | 0.00% | 0 / 1 | 2 | 0.00% | 0 / 1 | |||
| fileNotWritable | 0.00% | 0 / 1 | 0.00% | 0 / 1 | 2 | |||||
| 1 | <?php | |
| 2 | ||
| 3 | declare(strict_types=1); | |
| 4 | ||
| 5 | namespace Stewart\Codegen\Exception; | |
| 6 | ||
| 7 | use Stewart\Contracts\Exception\StewartException; | |
| 8 | ||
| 9 | /** @extends StewartException<CodegenError> */ | |
| 10 | final class CodegenException extends StewartException | |
| 11 | { | |
| 12 | public static function fileNotWritable(string $path): self | |
| 13 | { | |
| 14 | return self::createForReason(CodegenError::FileNotWritable, path: $path); | |
| 15 | } | |
| 16 | } |