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
Push — 3.x ( d805b4...27c796 )
by Jindřich
01:53
created

MaintenanceErrorException::getErrorNumber()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
ccs 0
cts 2
cp 0
crap 2
1
<?php
2
3
declare(strict_types=1);
4
5
6
namespace Skautis\Wsdl;
7
8
class MaintenanceErrorException
9
  extends
10
  \RuntimeException
11
{
12
13
  /**
14
   * @var int
15
   */
16
  private $errno;
17
18
  /**
19
   * @var string
20
   */
21
  private $errfile;
22
23
  /**
24
   * @var int
25
   */
26
  private $errline;
27
28 1
  public function __construct(
29
    string $message,
30
    int $errno,
31
    string $errfile,
32
    int $errline
33
  ) {
34 1
    parent::__construct($message, 0);
35
36 1
    $this->errno = $errno;
37 1
    $this->errfile = $errfile;
38 1
    $this->errline = $errline;
39 1
  }
40
41
  public function getErrorNumber(): int
42
  {
43
    return $this->errno;
44
  }
45
46
  public function getErrorFile(): string
47
  {
48
    return $this->errfile;
49
  }
50
51
  public function getErrorLine(): int
52
  {
53
    return $this->errline;
54
  }
55
56
}