Passed
Push — master ( 102634...08910a )
by Christoffer
02:20
created

AbstractRule   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A setContext() 0 4 1
1
<?php
2
3
namespace Digia\GraphQL\Schema\Validation\Rule;
4
5
use Digia\GraphQL\Schema\Validation\ValidationContextInterface;
6
7
abstract class AbstractRule implements RuleInterface
8
{
9
    /**
10
     * @var ValidationContextInterface
11
     */
12
    protected $context;
13
14
    /**
15
     * @param ValidationContextInterface $context
16
     * @return $this
17
     */
18
    public function setContext(ValidationContextInterface $context)
19
    {
20
        $this->context = $context;
21
        return $this;
22
    }
23
}
24