VhostAwareTrait   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
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 15
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A setVhost() 0 6 1
1
<?php
2
namespace Metfan\RabbitSetup\Manager\RabbitMq;
3
4
/**
5
 * Simple trait implentation of VhostAwareInterface
6
 *
7
 * @author Ulrich
8
 * @package Metfan\RabbitSetup\Manager\RabbitMq
9
 */
10
trait VhostAwareTrait
11
{
12
    protected $vhost;
13
14
    /**
15
     * @param mixed $vhost
16
     * @return $this
17
     */
18
    public function setVhost($vhost)
19
    {
20
        $this->vhost = $vhost;
21
22
        return $this;
23
    }
24
}
25