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

InvalidDataException::invalidKey()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 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