Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
Total | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
3 / 3 |
BadContentStructureException | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |
100.00% |
3 / 3 |
__construct | |
100.00% |
1 / 1 |
1 | |
100.00% |
3 / 3 |
1 | <?php |
2 | |
3 | namespace Qmp\Laravel\FileGenerator\Services\FileGenerator\Exceptions; |
4 | |
5 | use Illuminate\Support\Str; |
6 | use Exception; |
7 | use Throwable; |
8 | |
9 | class BadContentStructureException extends Exception |
10 | { |
11 | /** |
12 | * @param string $type |
13 | * @param int $code |
14 | * @param \Throwable|null $previous |
15 | */ |
16 | public function __construct(string $type, $code = 0, Throwable $previous = null) |
17 | { |
18 | $message = 'Bad content structure for ' . Str::upper($type) . ' file'; |
19 | parent::__construct($message, $code, $previous); |
20 | } |
21 | } |