Passed
Push — master ( 5cd32c...1a1aa9 )
by Rafael
05:46
created

IDEncoderManager   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A getEncoder() 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\Encoder;
12
13
class IDEncoderManager
14
{
15
    /**
16
     * @var IDEncoderInterface
17
     */
18
    protected $encoder;
19
20
    /**
21
     * IDEncoderManager constructor.
22
     *
23
     * @param IDEncoderInterface $encoder
24
     */
25 22
    public function __construct(IDEncoderInterface $encoder)
26
    {
27 22
        $this->encoder = $encoder;
28 22
    }
29
30
    /**
31
     * @return IDEncoderInterface
32
     */
33 22
    public function getEncoder(): IDEncoderInterface
34
    {
35 22
        return $this->encoder;
36
    }
37
}
38