Completed
Push — master ( 0eb5d9...ce204c )
by David
14s
created

TestControllerWithFailWith   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A testFailWith() 0 3 1
1
<?php
2
3
4
namespace TheCodingMachine\GraphQL\Controllers\Fixtures;
5
6
use ArrayObject;
7
use TheCodingMachine\GraphQL\Controllers\Annotations\FailWith;
8
use TheCodingMachine\GraphQL\Controllers\Annotations\Logged;
9
use TheCodingMachine\GraphQL\Controllers\Annotations\Mutation;
10
use TheCodingMachine\GraphQL\Controllers\Annotations\Query;
11
use TheCodingMachine\GraphQL\Controllers\Annotations\Right;
12
13
class TestControllerWithFailWith
14
{
15
    /**
16
     * @Query
17
     * @Logged
18
     * @FailWith(null)
19
     */
20
    public function testFailWith(): TestObject
21
    {
22
        return new TestObject('foo');
23
    }
24
}
25