Passed
Push — master ( 8a603c...aaf589 )
by Cesar
12:36 queued 10:34
created

RotationFailed::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 1
eloc 2
c 1
b 0
f 1
nc 1
nop 4
dl 0
loc 5
rs 10
1
<?php
2
3
namespace Cesargb\Log\Exceptions;
4
5
use Exception;
6
use Throwable;
7
8
class RotationFailed extends Exception
9
{
10
    private string $filename;
11
12
    public function __construct(string $message = '', int $code = 0, ?Throwable $previus = null, ?string $filename = null)
13
    {
14
        parent::__construct($message, $code, $previus);
15
16
        $this->filename = $filename ?? '';
17
    }
18
19
    public function getFilename(): ?string
20
    {
21
        return $this->filename;
22
    }
23
}
24