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

Entity   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getConverterClass() 0 3 1
A isCollection() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Overblog\GraphQLBundle\Hydrator\Converters;
6
7
/**
8
 * Converts scalar value into Doctrine entity.
9
 *
10
 * @Annotation
11
 */
12
class Entity implements ConverterAnnotationInterface
13
{
14
    /**
15
     * FQCN of the target entity
16
     */
17
    public string $value;
18
19
    public bool $isCollection;
20
21
    public static function getConverterClass(): string
22
    {
23
        return static::class.'Converter';
24
    }
25
26
    public function isCollection(): bool
27
    {
28
        return $this->isCollection ?? false;
29
    }
30
}
31