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

BadRequestException::getViolations()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

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