EnsuranceFormatException   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 13
rs 10
c 0
b 0
f 0
wmc 1
lcom 0
cbo 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php
2
3
namespace Dgame\Ensurance\Exception;
4
5
use function Dgame\Ensurance\format;
6
7
/**
8
 * Class EnsuranceFormatException
9
 * @package Dgame\Ensurance\Exception
10
 */
11
class EnsuranceFormatException extends EnsuranceException
12
{
13
    /**
14
     * EnsuranceFormatException constructor.
15
     *
16
     * @param string $message
17
     * @param mixed  ...$args
18
     */
0 ignored issues
show
Documentation introduced by
Consider making the type for parameter $args a bit more specific; maybe use array.
Loading history...
19
    public function __construct(string $message, ...$args)
20
    {
21
        parent::__construct(format($message, ...$args));
22
    }
23
}