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

LogLevelException   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

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

1 Method

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