Completed
Push — master ( 6c2ef1...d70f56 )
by David
15s queued 10s
created

FooExtendType   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A customExtendedField() 0 3 1
1
<?php
2
3
4
namespace TheCodingMachine\GraphQL\Controllers\Fixtures\Types;
5
6
use function strtoupper;
7
use TheCodingMachine\GraphQL\Controllers\Annotations\ExtendType;
8
use TheCodingMachine\GraphQL\Controllers\Annotations\Field;
9
use TheCodingMachine\GraphQL\Controllers\Fixtures\TestObject;
10
11
/**
12
 * @ExtendType(class=TheCodingMachine\GraphQL\Controllers\Fixtures\TestObject::class)
13
 */
14
class FooExtendType
15
{
16
    /**
17
     * @Field()
18
     * @param TestObject $test
19
     * @return string
20
     */
21
    public function customExtendedField(TestObject $test): string
22
    {
23
        return strtoupper($test->getTest());
24
    }
25
}
26