Passed
Push — master ( 36097f...93304f )
by Rafael
03:14
created

AnnotationReaderAwareTrait::setReader()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 3
ccs 0
cts 3
cp 0
rs 10
c 0
b 0
f 0
cc 1
eloc 1
nc 1
nop 1
crap 2
1
<?php
2
/*******************************************************************************
3
 *  This file is part of the GraphQL Bundle package.
4
 *
5
 *  (c) YnloUltratech <[email protected]>
6
 *
7
 *  For the full copyright and license information, please view the LICENSE
8
 *  file that was distributed with this source code.
9
 ******************************************************************************/
10
11
namespace Ynlo\GraphQLBundle\Definition\Loader\Annotation;
12
13
use Doctrine\Common\Annotations\Reader;
14
15
/**
16
 * Base resolver for resolvers using annotation reader
17
 */
18
trait AnnotationReaderAwareTrait
19
{
20
    /**
21
     * @var Reader
22
     */
23
    protected $reader;
24
25
    /**
26
     * @param Reader $reader
27
     */
28
    public function setReader(Reader $reader)
29
    {
30
        $this->reader = $reader;
31
    }
32
}
33