Completed
Pull Request — develop (#7)
by Romain
01:41
created

InvalidOptionsException::invalidTTL()   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 InvalidOptionsException extends AbstractException
5
{
6
7
    public static function invalidTimeToLive($value)
8
    {
9
        return new static(sprintf("Time to live must be between 0 and 2419200. Current value is: %s.", $value));
10
    }
11
12
    public static function invalidPriority()
13
    {
14
        return new static("Priority can be either 'normal' or 'high'.");
15
    }
16
}
17