FormInvalidConfigError::getFormClass()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 1
eloc 1
c 1
b 0
f 1
nc 1
nop 0
dl 0
loc 3
ccs 0
cts 2
cp 0
crap 2
rs 10
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