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

SubscriptionAwareTrait   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A setPublisher() 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\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
}