Passed
Push — master ( 8038c9...c43533 )
by Freddie
02:59
created

BadRequestException   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
dl 0
loc 13
ccs 5
cts 5
cp 1
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setViolations() 0 3 1
A getViolations() 0 3 1
1
<?php declare(strict_types = 1);
2
3
namespace Simplex\Quickstart\Shared\Exception;
4
5
use Symfony\Component\Validator\ConstraintViolationListInterface;
6
7
final class BadRequestException extends \RuntimeException
8
{
9
    /** @var ConstraintViolationListInterface */
10
    private $violations;
11
12 3
    public function setViolations(ConstraintViolationListInterface $violations): void
13
    {
14 3
        $this->violations = $violations;
15 3
    }
16
17 3
    public function getViolations(): ?ConstraintViolationListInterface
18
    {
19 3
        return $this->violations;
20
    }
21
}
22