Total Complexity | 3 |
Total Lines | 32 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | final class Queue implements \JsonSerializable |
||
11 | { |
||
12 | /** |
||
13 | * Name of the message queue where the message is received. |
||
14 | * |
||
15 | * @var string|null |
||
16 | */ |
||
17 | private $name; |
||
18 | |||
19 | /** |
||
20 | * @param string|null $name |
||
21 | */ |
||
22 | 3 | public function __construct($name = null) |
|
23 | { |
||
24 | 3 | $this->name = $name; |
|
25 | 3 | } |
|
26 | |||
27 | /** |
||
28 | * @return string|null |
||
29 | */ |
||
30 | 1 | public function name() |
|
33 | } |
||
34 | |||
35 | /** |
||
36 | * @return array |
||
37 | */ |
||
38 | 1 | public function jsonSerialize() |
|
42 | 1 | ]; |
|
43 | } |
||
45 |