Passed
Pull Request — master (#159)
by Christoffer
02:37
created

AbstractRule::setContext()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
3
namespace Digia\GraphQL\SchemaValidation\Rule;
4
5
use Digia\GraphQL\SchemaValidation\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