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

FooExtendType::customExtendedField()   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\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