Passed
Push — master ( 0b86b2...26cfdb )
by Rafael
13:17
created

SubscriptionAwareTrait::setPublisher()   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 1
Bugs 1 Features 0
Metric Value
eloc 1
c 1
b 1
f 0
dl 0
loc 3
ccs 0
cts 3
cp 0
rs 10
cc 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\Subscription;
12
13
trait SubscriptionAwareTrait
14
{
15
    /**
16
     * @var Publisher
17
     */
18
    protected $publisher;
19
20
    /**
21
     * @param Publisher $publisher
22
     */
23
    public function setPublisher(Publisher $publisher): void
24
    {
25
        $this->publisher = $publisher;
26
    }
27
}