Passed
Push — master ( a41166...4c99b3 )
by Bruno
03:13
created

processMigrationFieldDirective()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 0

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 0
c 1
b 0
f 0
dl 0
loc 5
ccs 0
cts 1
cp 0
rs 10
cc 1
nc 1
nop 3
crap 2
1
<?php declare(strict_types=1);
2
3
namespace Modelarium\Laravel\Directives;
4
5
use Illuminate\Support\Str;
6
use Modelarium\Exception\Exception;
7
use Modelarium\Laravel\Targets\MigrationGenerator;
8
use Modelarium\Laravel\Targets\ModelGenerator;
9
use Modelarium\Laravel\Targets\Interfaces\MigrationDirectiveInterface;
10
use Modelarium\Laravel\Targets\Interfaces\ModelDirectiveInterface;
11
12
class MigrationPrimaryIndexDirective implements MigrationDirectiveInterface, ModelDirectiveInterface
13
{
14
    public static function processMigrationTypeDirective(
15
        MigrationGenerator $generator,
16
        \GraphQL\Language\AST\DirectiveNode $directive
17
    ): void {
18
        throw new Exception("Primary index is not implemented yet");
19
    }
20
21
    public static function processMigrationFieldDirective(
22
        MigrationGenerator $generator,
23
        \GraphQL\Type\Definition\FieldDefinition $field,
24
        \GraphQL\Language\AST\DirectiveNode $directive
25
    ): void {
26
        // nothing
27
    }
28
29
    public static function processModelTypeDirective(
30
        ModelGenerator $generator,
31
        \GraphQL\Language\AST\DirectiveNode $directive
32
    ): void {
33
        throw new Exception("Primary index is not implemented yet");
34
    }
35
36
    public static function processModelFieldDirective(
37
        ModelGenerator $generator,
38
        \GraphQL\Type\Definition\FieldDefinition $field,
39
        \GraphQL\Language\AST\DirectiveNode $directive
40
    ): void {
41
        // nothing
42
    }
43
44
    public function processModelRelationshipDirective(
45
        ModelGenerator $generator,
46
        \GraphQL\Type\Definition\FieldDefinition $field,
47
        \GraphQL\Language\AST\DirectiveNode $directive
48
    ): void {
49
        // nothing
50
    }
51
}
52