Passed
Push — master ( 6bf22a...09030e )
by Bruno
04:28
created

MigrationFulltextIndexDirective::definition()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 11

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 1
CRAP Score 1

Importance

Changes 1
Bugs 1 Features 1
Metric Value
cc 1
eloc 11
c 1
b 1
f 1
nc 1
nop 0
dl 0
loc 3
ccs 1
cts 1
cp 1
crap 1
rs 9.9
1
<?php declare(strict_types=1);
2
3
namespace Modelarium\Laravel\Lighthouse\Directives;
4
5
use Nuwave\Lighthouse\Schema\Directives\BaseDirective;
6
use Nuwave\Lighthouse\Support\Contracts\DefinedDirective;
7
8
class MigrationFulltextIndexDirective extends BaseDirective implements DefinedDirective
0 ignored issues
show
Deprecated Code introduced by
The interface Nuwave\Lighthouse\Suppor...tracts\DefinedDirective has been deprecated: The method definition() will be moved to ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated  annotation

8
class MigrationFulltextIndexDirective extends BaseDirective implements /** @scrutinizer ignore-deprecated */ DefinedDirective

This interface has been deprecated. The supplier of the interface has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the interface will be removed and what other interface to use instead.

Loading history...
9
{
10 8
    public static function definition(): string
11
    {
12
        return /** @lang GraphQL */ <<<'SDL'
13 8
"""
14
Add a full text index to table
15
"""
16
directive @migrationFulltextIndex(
17
    """
18
    The fields to index. Must be an array even if it is just one field.
19
    """
20
    fields: [String!]!
21
) on OBJECT
22
SDL;
23
    }
24
}
25