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

Completed
Pull Request — master (#750)
by Timur
22:37
created

Models::add()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
c 0
b 0
f 0
dl 0
loc 3
rs 10
cc 1
nc 1
nop 2
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Overblog\GraphQLBundle\Hydrator;
6
7
/**
8
 * Container for all already hydrated models.
9
 */
10
class Models
11
{
12
    public array $models = [];
13
14
    public function get(string $name)
15
    {
16
        return $this->$name ?? null;
17
    }
18
19
    public function getAll(): array
20
    {
21
        return $this->models;
22
    }
23
24
    public function add(string $name, $model)
25
    {
26
        $this->models[$name] = $model;
27
    }
28
29
    public function __get($name)
30
    {
31
        return $this->models[$name] ?? null;
32
    }
33
}
34