Completed
Pull Request — master (#8)
by Romain
04:20
created

InvalidDataException   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A invalidKey() 0 4 1
1
<?php
2
namespace ker0x\Push\Adapter\Fcm\Message\Exception;
3
4
class InvalidDataException extends AbstractException
5
{
6
7
    /**
8
     * Display if a key does not exist in an array
9
     *
10
     * @param string $key The key that is wrong.
11
     * @return static
12
     */
13
    public static function invalidKey($key)
14
    {
15
        return new static(sprintf("%s does not exist in array data.", $key));
16
    }
17
}
18