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   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 49
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 50%

Importance

Changes 0
Metric Value
dl 0
loc 49
rs 10
c 0
b 0
f 0
ccs 6
cts 12
cp 0.5
wmc 4
lcom 0
cbo 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 12 1
A getErrorNumber() 0 4 1
A getErrorFile() 0 4 1
A getErrorLine() 0 4 1
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
}