Completed
Push — master ( 229e91...cccc81 )
by Freek
01:28
created

CouldNotParseBladeXComponent::invalidHtml()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 3
1
<?php
2
3
namespace Spatie\BladeX\Exceptions;
4
5
use Exception;
6
use Spatie\BladeX\BladeXComponent;
7
8
class CouldNotParseBladeXComponent extends Exception
9
{
10
    public static function invalidHtml(string $componentHtml, BladeXComponent $bladeXComponent, Exception $previousException)
11
    {
12
        return new static("Could not parse a usage of BladeX component `{$bladeXComponent->name}` that uses the `{$bladeXComponent->bladeViewName}` view because of invalid html. Html found: `{$componentHtml}`.", 0, $previousException);
13
    }
14
}
15