InvalidKeyException   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 8
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
1
<?php
2
3
namespace Jlaswell\SimpleCache;
4
5
use Exception;
6
use Psr\SimpleCache\InvalidArgumentException;
7
8
class InvalidKeyException extends Exception implements InvalidArgumentException
9
{
10
    function __construct($message = null, $code = 0, Exception $previous = null)
0 ignored issues
show
Best Practice introduced by
It is generally recommended to explicitly declare the visibility for methods.

Adding explicit visibility (private, protected, or public) is generally recommend to communicate to other developers how, and from where this method is intended to be used.

Loading history...
11
    {
12
        $message = $message ?? "Cache keys must be a string and container at least one character and not contain any of the characters '{}()/@:'";
13
        parent::__construct($message, $code, $previous);
14
    }
15
}
16