FormatConstraintException::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 6
ccs 0
cts 4
cp 0
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 1
crap 2
1
<?php
2
3
namespace Nicofuma\SwaggerBundle\Exception;
4
5
class FormatConstraintException extends \RuntimeException
6
{
7
    /** @var string[] */
8
    private $errors;
9
10
    public function __construct(array $errors)
11
    {
12
        parent::__construct();
13
14
        $this->errors = $errors;
15
    }
16
17
    /**
18
     * @return string[]
19
     */
20
    public function getErrors()
21
    {
22
        return $this->errors;
23
    }
24
}
25