AbstractQueue::isPassive()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php
2
/**
3
 * This file is part of order_management
4
 * User: Sinan TURGUT <[email protected]>
5
 * Date: 24.06.2019
6
 * php version 7.2
7
 *
8
 * @category Assessment
9
 * @package  OrderManagement
10
 * @author   Sinan TURGUT <[email protected]>
11
 * @license  See LICENSE file
12
 * @link     https://dev.sinanturgut.com.tr
13
 */
14
15
namespace OrderManagement\RabbitMQ;
16
17
/**
18
 * Class AbstractQueue
19
 * @package OrderManagement\RabbitMQ
20
 */
21
abstract class AbstractQueue implements QueueInterface
22
{
23
    /**
24
     *
25
     * @var string
26
     */
27
    protected $name = '';
28
29
    /**
30
     *
31
     * @var bool
32
     */
33
    protected $passive = false;
34
35
    /**
36
     *
37
     * @var bool
38
     */
39
    protected $durable = true;
40
41
    /**
42
     *
43
     * @var bool
44
     */
45
    protected $exclusive = false;
46
47
    /**
48
     *
49
     * @var bool
50
     */
51
    protected $autoDelete = false;
52
53
    /**
54
     * @return string
55
     */
56
    public function getName() : string
57
    {
58
        return $this->name;
59
    }
60
61
    /**
62
     * @return bool
63
     */
64
    public function isPassive() : bool
65
    {
66
        return $this->passive;
67
    }
68
69
    /**
70
     * @return bool
71
     */
72
    public function isDurable() : bool
73
    {
74
        return $this->durable;
75
    }
76
77
    /**
78
     * @return bool
79
     */
80
    public function isExclusive() : bool
81
    {
82
        return $this->exclusive;
83
    }
84
85
    /**
86
     * @return bool
87
     */
88
    public function isAutoDelete() : bool
89
    {
90
        return $this->autoDelete;
91
    }
92
}
93