Passed
Push — master ( c82647...c877fa )
by Georges
11:01
created

PhpfastcacheCorruptedDataException::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
nc 1
nop 2
dl 0
loc 3
rs 10
c 1
b 0
f 0
1
<?php
2
3
/**
4
 *
5
 * This file is part of Phpfastcache.
6
 *
7
 * @license MIT License (MIT)
8
 *
9
 * For full copyright and license information, please see the docs/CREDITS.txt and LICENCE files.
10
 *
11
 * @author Georges.L (Geolim4)  <[email protected]>
12
 * @author Contributors  https://github.com/PHPSocialNetwork/phpfastcache/graphs/contributors
13
 */
14
15
declare(strict_types=1);
16
17
namespace Phpfastcache\Exceptions;
18
19
class PhpfastcacheCorruptedDataException extends PhpfastcacheDriverException
20
{
21
    /**
22
     * @param string $message
23
     * @param mixed|null $corruptedData
24
     */
25
    public function __construct(protected $message = '', protected mixed $corruptedData = null)
26
    {
27
        parent::__construct($message);
28
    }
29
}
30