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

BadRequestException::setViolations()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
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
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