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.

DoesNotImplementChildInterfaceException   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
eloc 7
c 1
b 0
f 0
dl 0
loc 15
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A class() 0 3 1
A create() 0 6 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace WyriHaximus\React\ChildProcess\Messenger\ChildProcess;
6
7
use Exception;
8
9
/**
10
 * @psalm-suppress MissingConstructor
11
 */
12
final class DoesNotImplementChildInterfaceException extends Exception
13
{
14
    private string $class;
15
16
    public static function create(string $class): self
17
    {
18
        $self        = new self('Given class doesn\'t implement ChildInterface');
19
        $self->class = $class;
20
21
        return $self;
22
    }
23
24
    public function class(): string
25
    {
26
        return $this->class;
27
    }
28
}
29