Completed
Push — master ( 64f0fa...cc6449 )
by David
13s queued 11s
created

NamingStrategy   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 2
dl 0
loc 9
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A getInterfaceNameFromConcreteName() 0 3 1
1
<?php
2
3
4
namespace TheCodingMachine\GraphQL\Controllers;
5
6
7
class NamingStrategy implements NamingStrategyInterface
8
{
9
    /**
10
     * Returns the name of the GraphQL interface from a name of a concrete class (when the interface is created
11
     * automatically to manage inheritance)
12
     */
13
    public function getInterfaceNameFromConcreteName(string $concreteType): string
14
    {
15
        return $concreteType.'Interface';
16
    }
17
}