Completed
Pull Request — master (#3)
by Randy
01:20
created

EnsuranceFormatException::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 2
dl 0
loc 4
rs 10
c 0
b 0
f 0
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
}