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

ExtendedContactType::uppercaseName()   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\Integration\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\Annotations\SourceField;
10
use TheCodingMachine\GraphQL\Controllers\Annotations\Type;
11
use TheCodingMachine\GraphQL\Controllers\Fixtures\Integration\Models\Contact;
12
13
/**
14
 * @ExtendType(class=Contact::class)
15
 */
16
class ExtendedContactType
17
{
18
    /**
19
     * @Field()
20
     */
21
    public function uppercaseName(Contact $contact): string
22
    {
23
        return strtoupper($contact->getName());
24
    }
25
}