Scrutinizer GitHub App not installed

We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.

Install GitHub App

Passed
Pull Request — master (#378)
by Jérémiah
20:45
created

TypeLoadedEvent   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 60%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 15
ccs 3
cts 5
cp 0.6
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getType() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Overblog\GraphQLBundle\Event;
6
7
use GraphQL\Type\Definition\Type;
8
use Symfony\Component\EventDispatcher\Event;
9
10
final class TypeLoadedEvent extends Event
11
{
12
    /** @var Type */
13
    private $type;
14
15 89
    public function __construct(Type $type)
16
    {
17 89
        $this->type = $type;
18 89
    }
19
20
    public function getType(): Type
21
    {
22
        return $this->type;
23
    }
24
}
25