GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

RequestType   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Test Coverage

Coverage 33.33%

Importance

Changes 0
Metric Value
eloc 7
dl 0
loc 19
rs 10
c 0
b 0
f 0
ccs 2
cts 6
cp 0.3333
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getRequestTypeLow() 0 3 1
A getRequestTypeHigh() 0 3 1
A getRequestTypeEconomy() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace SimPod\SmsManager;
6
7
use Consistence\Enum\Enum;
8
9
final class RequestType extends Enum
10
{
11
    public const REQUEST_TYPE_LOW     = 'lowcost';
12
    public const REQUEST_TYPE_ECONOMY = 'economy';
13
    public const REQUEST_TYPE_HIGH    = 'high';
14
15
    public static function getRequestTypeLow() : self
16
    {
17
        return self::get(self::REQUEST_TYPE_LOW);
0 ignored issues
show
Bug Best Practice introduced by
The expression return self::get(self::REQUEST_TYPE_LOW) returns the type Consistence\Enum\Enum which includes types incompatible with the type-hinted return SimPod\SmsManager\RequestType.
Loading history...
18
    }
19
20
    public static function getRequestTypeEconomy() : self
21
    {
22
        return self::get(self::REQUEST_TYPE_ECONOMY);
0 ignored issues
show
Bug Best Practice introduced by
The expression return self::get(self::REQUEST_TYPE_ECONOMY) returns the type Consistence\Enum\Enum which includes types incompatible with the type-hinted return SimPod\SmsManager\RequestType.
Loading history...
23
    }
24
25 1
    public static function getRequestTypeHigh() : self
26
    {
27 1
        return self::get(self::REQUEST_TYPE_HIGH);
0 ignored issues
show
Bug Best Practice introduced by
The expression return self::get(self::REQUEST_TYPE_HIGH) returns the type Consistence\Enum\Enum which includes types incompatible with the type-hinted return SimPod\SmsManager\RequestType.
Loading history...
28
    }
29
}
30