Passed
Pull Request — master (#3)
by
unknown
05:56 queued 02:23
created

Query   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 5
dl 0
loc 13
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getPrefix() 0 3 1
A getKeyword() 0 3 1
1
<?php
2
3
namespace Commadore\GraphQL;
4
5
final class Query extends AbstractQuery
6
{
7
    const KEYWORD = 'query';
8
    const GENERATED_NAME_PREFIX = 'query_';
9
10
    public function getKeyword(): string
11
    {
12
        return self::KEYWORD;
13
    }
14
15
    public function getPrefix(): string
16
    {
17
        return self::GENERATED_NAME_PREFIX;
18
    }
19
}
20