Test Setup Failed
Push — main ( e03535...dde247 )
by Pieter
03:39
created

DuplicateParameterInParameterList::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 1 Features 1
Metric Value
cc 1
eloc 6
c 1
b 1
f 1
nc 1
nop 2
dl 0
loc 8
rs 10
1
<?php
2
3
4
namespace Apie\OpenapiSchema\Exceptions;
5
6
use Apie\Core\Exceptions\ApieException;
7
use Apie\OpenapiSchema\ValueObjects\ParameterIn;
8
9
class DuplicateParameterInParameterList extends ApieException
10
{
11
    public function __construct(string $name, ParameterIn $in)
12
    {
13
        parent::__construct(
14
            500,
15
            sprintf(
16
                'Parameter with name "%s" in "%s" is found as a duplicate in the parameter list',
17
                $name,
18
                $in
19
            )
20
        );
21
    }
22
}
23