Completed
Push — master ( f0448f...4201d1 )
by Julien
14s
created

LogLevelException::__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 1
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
namespace TheAentMachine\AentDockerCompose\Aenthill\Exception;
3
4
class LogLevelException extends AenthillException
5
{
6
    /** @var string */
7
    private $wrongLogLevel;
8
9
    /**
10
     * LogLevelException constructor.
11
     * @param string $wrongLogLevel
12
     */
13
    public function __construct(string $wrongLogLevel)
14
    {
15
        $this->wrongLogLevel = $wrongLogLevel;
16
        parent::__construct("accepted values for log level: DEBUG, INFO, WARN, ERROR. Got $wrongLogLevel");
17
    }
18
}
19