Test Failed
Branch v0.2 (3f77aa)
by Freddie
07:42 queued 01:11
created

BadRequestException   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 13
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
class BadRequestException extends \RuntimeException
8
{
9
    /** @var ConstraintViolationListInterface */
10
    private $violations;
11
12
    public function setViolations(ConstraintViolationListInterface $violations): void
13
    {
14
        $this->violations = $violations;
15
    }
16
17
    public function getViolations(): ?ConstraintViolationListInterface
18
    {
19
        return $this->violations;
20
    }
21
}
22