JobPermissionDelete::getVirtualHost()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 4
Ratio 100 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 1
eloc 2
c 1
b 0
f 1
nc 1
nop 0
dl 4
loc 4
rs 10
ccs 2
cts 2
cp 1
crap 1
1
<?php
2
3
namespace mcorten87\rabbitmq_api\jobs;
4
5
use mcorten87\rabbitmq_api\objects\User;
6
use mcorten87\rabbitmq_api\objects\VirtualHost;
7
8 View Code Duplication
class JobPermissionDelete extends JobBase
0 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
9
{
10
11
    /** @var  VirtualHost */
12
    private $virtualHost;
13
14
    /** @var  User */
15
    private $user;
16
17
    /**
18
     * @return VirtualHost
19
     */
20 2
    public function getVirtualHost()
21
    {
22 2
        return $this->virtualHost;
23
    }
24
25
    /**
26
     * @return User
27
     */
28 2
    public function getUser()
29
    {
30 2
        return $this->user;
31
    }
32
33 2
    public function __construct(VirtualHost $virtualHost, User $user)
34
    {
35 2
        $this->virtualHost = $virtualHost;
36 2
        $this->user = $user;
37 2
    }
38
}
39