Passed
Pull Request — master (#159)
by Christoffer
03:39
created

ValidationContextCreator   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A create() 0 3 1
1
<?php
2
3
namespace Digia\GraphQL\SchemaValidation;
4
5
use Digia\GraphQL\Type\SchemaInterface;
6
7
class ValidationContextCreator implements ValidationContextCreatorInterface
8
{
9
    /**
10
     * @inheritdoc
11
     */
12
    public function create(SchemaInterface $schema): ValidationContextInterface
13
    {
14
        return new ValidationContext($schema);
15
    }
16
}
17