Completed
Push — master ( 0f7b0a...750008 )
by Christoffer
02:09
created

ContextBuilder   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A build() 0 6 1
1
<?php
2
3
namespace Digia\GraphQL\Validation;
4
5
use Digia\GraphQL\Language\AST\Node\DocumentNode;
6
use Digia\GraphQL\Type\SchemaInterface;
7
use Digia\GraphQL\Util\TypeInfo;
8
9
class ContextBuilder implements ContextBuilderInterface
10
{
11
    /**
12
     * @param SchemaInterface $schema
13
     * @param DocumentNode    $document
14
     * @param TypeInfo        $typeInfo
15
     * @return ValidationContextInterface
16
     */
17
    public function build(
18
        SchemaInterface $schema,
19
        DocumentNode $document,
20
        TypeInfo $typeInfo
21
    ): ValidationContextInterface {
22
        return new ValidationContext($schema, $document, $typeInfo);
23
    }
24
}
25