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

DuplicateParameterInParameterList   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 1
Bugs 1 Features 1
Metric Value
eloc 7
c 1
b 1
f 1
dl 0
loc 10
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 8 1
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