Completed
Push — master ( 15c856...4ce16e )
by Rafael
05:47
created

AnnotationReaderAwareTrait   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
dl 0
loc 13
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A setReader() 0 3 1
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 1
    public function setReader(Reader $reader)
29
    {
30 1
        $this->reader = $reader;
31 1
    }
32
}
33