Code Duplication    Length = 28-33 lines in 3 locations

src/jobs/JobQueueDelete.php 1 location

@@ 15-42 (lines=28) @@
12
use mcorten87\rabbitmq_api\objects\QueueName;
13
use mcorten87\rabbitmq_api\objects\VirtualHost;
14
15
class JobQueueDelete extends JobBase
16
{
17
    private $queueName;
18
19
    private $virtualhost;
20
21
    /**
22
     * @return QueueName
23
     */
24
    public function getQueueName() : QueueName
25
    {
26
        return $this->queueName;
27
    }
28
29
    /**
30
     * @return VirtualHost
31
     */
32
    public function getVirtualhost()
33
    {
34
        return $this->virtualhost;
35
    }
36
37
    public function __construct(VirtualHost $virtualHost, QueueName $queueName)
38
    {
39
        $this->virtualhost = $virtualHost;
40
        $this->queueName = $queueName;
41
    }
42
}
43

src/jobs/JobQueueList.php 1 location

@@ 15-42 (lines=28) @@
12
use mcorten87\rabbitmq_api\objects\QueueName;
13
use mcorten87\rabbitmq_api\objects\VirtualHost;
14
15
class JobQueueList extends JobBase
16
{
17
    private $queueName;
18
19
    private $virtualhost;
20
21
    /**
22
     * @return QueueName
23
     */
24
    public function getQueueName() : QueueName
25
    {
26
        return $this->queueName;
27
    }
28
29
    /**
30
     * @return VirtualHost
31
     */
32
    public function getVirtualhost()
33
    {
34
        return $this->virtualhost;
35
    }
36
37
    public function __construct(VirtualHost $virtualHost, QueueName $queueName)
38
    {
39
        $this->virtualhost = $virtualHost;
40
        $this->queueName = $queueName;
41
    }
42
}
43

src/jobs/JobBindingListQueue.php 1 location

@@ 11-43 (lines=33) @@
8
/**
9
 * Lists the details of a specific exchange
10
 */
11
class JobBindingListQueue extends JobBase
12
{
13
    /**
14
     * @var VirtualHost
15
     */
16
    private $virtualHost;
17
18
    /**
19
     * @var QueueName
20
     */
21
    private $queueName;
22
23
24
    /** @return VirtualHost */
25
    public function getVirtualHost() : VirtualHost
26
    {
27
        return $this->virtualHost;
28
    }
29
30
    /**
31
     * @return QueueName
32
     */
33
    public function getQueueName(): QueueName
34
    {
35
        return $this->queueName;
36
    }
37
38
    public function __construct(VirtualHost $virtualHost, QueueName $queueName)
39
    {
40
        $this->virtualHost = $virtualHost;
41
        $this->queueName = $queueName;
42
    }
43
}
44