Passed
Push — master ( e84e4b...dd6318 )
by Smoren
02:33
created

FormInvalidConfigError   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 5
c 1
b 0
f 1
dl 0
loc 23
ccs 0
cts 5
cp 0
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getFormClass() 0 3 1
A __construct() 0 4 1
1
<?php
2
3
namespace Smoren\Validator\Exceptions;
4
5
class FormInvalidConfigError extends \UnexpectedValueException
6
{
7
    /**
8
     * @var class-string
0 ignored issues
show
Documentation Bug introduced by
The doc comment class-string at position 0 could not be parsed: Unknown type name 'class-string' at position 0 in class-string.
Loading history...
9
     */
10
    protected string $formClass;
11
12
    /**
13
     * @param string $message
14
     * @param class-string $formClass
0 ignored issues
show
Documentation Bug introduced by
The doc comment class-string at position 0 could not be parsed: Unknown type name 'class-string' at position 0 in class-string.
Loading history...
15
     */
16
    public function __construct(string $message, string $formClass)
17
    {
18
        parent::__construct($message);
19
        $this->formClass = $formClass;
20
    }
21
22
    /**
23
     * @return class-string
0 ignored issues
show
Documentation Bug introduced by
The doc comment class-string at position 0 could not be parsed: Unknown type name 'class-string' at position 0 in class-string.
Loading history...
24
     */
25
    public function getFormClass(): string
26
    {
27
        return $this->formClass;
28
    }
29
}
30