| Total Complexity | 5 |
| Total Lines | 70 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 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 |
||
| 67 | } |
||
| 68 | |||
| 69 | /** |
||
| 70 | * @return bool |
||
| 71 | */ |
||
| 72 | public function isDurable() : bool |
||
| 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 |
||
| 91 | } |
||
| 92 | } |
||
| 93 |