ClientAwareTrait   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 18
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A setClient() 0 6 1
1
<?php
2
namespace Metfan\RabbitSetup\Manager\RabbitMq;
3
4
use Metfan\RabbitSetup\Http\ClientInterface;
5
6
/**
7
 * Simple trait implentation of ClientAwareInterface
8
 *
9
 * @author Ulrich
10
 * @package Metfan\RabbitSetup\Manager\RabbitMq
11
 */
12
trait ClientAwareTrait
13
{
14
    /**
15
     * @var ClientInterface
16
     */
17
    protected $client;
18
19
    /**
20
     * @param ClientInterface $client
21
     * @return $this
22
     */
23
    public function setClient(ClientInterface $client)
24
    {
25
        $this->client = $client;
26
27
        return $this;
28
    }
29
}
30