Completed
Push — master ( b6ef49...229e91 )
by Freek
01:20
created

CouldNotParseComponent::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 2
1
<?php
2
3
namespace Spatie\BladeX\Exceptions;
4
5
use Exception;
6
use Spatie\BladeX\BladeXComponent;
7
8
class CouldNotParseComponent extends Exception
9
{
10
    public static function invalidHtml(string $componentHtml, BladeXComponent $bladeXComponent)
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}`.");
13
    }
14
}
15