Code Duplication    Length = 38-38 lines in 2 locations

src/jobs/JobExchangeDelete.php 1 location

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

src/jobs/JobExchangeList.php 1 location

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