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.
Completed
Pull Request — master (#21)
by Cees-Jan
02:11
created

LogLine   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 63
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%
Metric Value
wmc 5
lcom 0
cbo 1
dl 0
loc 63
ccs 0
cts 20
cp 0
rs 10

5 Methods

Rating   Name   Duplication   Size   Complexity  
A id() 0 4 1
A log() 0 4 1
A number() 0 4 1
A final() 0 4 1
A refresh() 0 4 1
1
<?php
2
3
namespace WyriHaximus\Travis\Resource;
4
5
use WyriHaximus\ApiClient\Resource\TransportAwareTrait;
6
7
abstract class LogLine implements LogLineInterface
8
{
9
    use TransportAwareTrait;
10
11
    /**
12
     * @var int
13
     */
14
    protected $id;
15
16
    /**
17
     * @var string
18
     */
19
    // @codingStandardsIgnoreStart
20
    protected $_log;
21
    // @codingStandardsIgnoreEnd
22
23
    /**
24
     * @var int
25
     */
26
    protected $number;
27
28
    /**
29
     * @var bool
30
     */
31
    protected $final;
32
33
    /**
34
     * @return int
35
     */
36
    public function id() : int
37
    {
38
        return $this->id;
39
    }
40
41
    /**
42
     * @return string
43
     */
44
    public function log() : string
45
    {
46
        return $this->_log;
47
    }
48
49
    /**
50
     * @return int
51
     */
52
    public function number() : int
53
    {
54
        return $this->number;
55
    }
56
57
    /**
58
     * @return bool
59
     */
60
    public function final() : bool
61
    {
62
        return $this->final;
63
    }
64
65
    public function refresh()
66
    {
67
        throw new \Exception();
68
    }
69
}
70