Completed
Pull Request — master (#18)
by Freek
13:19
created

InvalidConfiguration   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 9
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A invalidValueProviderClass() 0 6 1
1
<?php
2
3
4
namespace Spatie\MailableTest\Exceptions;
5
6
use Exception;
7
8
class InvalidConfiguration extends Exception
9
{
10
    public static function invalidValueProviderClass($argumentValueProviderClass)
11
    {
12
        $expectedClass = ArgumentValueProvider::class;
13
14
        return new static("The `argument_value_provider_class` option in the config file expect a class that is a `{$expectedClass}` but a `{$argumentValueProviderClass}` was given.");
15
    }
16
}