Passed
Push — master ( e52344...df819b )
by Rafael
09:21
created

EndpointAwareTrait::setEndpoint()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 3
c 0
b 0
f 0
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 1
nc 1
nop 1
crap 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\Type\Definition;
12
13
use Ynlo\GraphQLBundle\Definition\Registry\Endpoint;
14
15
/**
16
 * Trait EndpointAwareTrait
17
 */
18
trait EndpointAwareTrait
19
{
20
    /**
21
     * @var Endpoint
22
     */
23
    public $endpoint;
24
25
    /**
26
     * @param Endpoint $endpoint
27
     */
28 1
    public function setEndpoint(Endpoint $endpoint)
29
    {
30 1
        $this->endpoint = $endpoint;
31 1
    }
32
}
33