Completed
Pull Request — master (#60)
by David
01:54
created

NamingStrategy::getInterfaceNameFromConcreteName()   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
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 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
}