Passed
Pull Request — master (#45)
by Andrey
13:21
created

FullNameAwareInterface   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getFields() 0 3 1
A getDescription() 0 3 1
A getName() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace App\GraphQL\Type;
6
7
use Andi\GraphQL\Definition\Type\InterfaceTypeInterface;
8
use App\GraphQL\Field\UserFullName;
9
10
final class FullNameAwareInterface implements InterfaceTypeInterface
11
{
12
    public function getName(): string
13
    {
14
        return 'FullNameAwareInterface';
15
    }
16
17
    public function getDescription(): ?string
18
    {
19
        return null;
20
    }
21
22
    public function getFields(): iterable
23
    {
24
        yield new UserFullName();
25
    }
26
}
27