Conditions | 3 |
Paths | 3 |
Total Lines | 14 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
31 | protected function setQueue(string $queue): self // Return yourself |
||
32 | { |
||
33 | $queue = trim($queue); |
||
34 | |||
35 | if (empty($queue)) { |
||
36 | throw new InternalNameException("Fila inválida!"); |
||
37 | } |
||
38 | |||
39 | if (!filter_var($queue)) { |
||
40 | throw new InternalNameException("Fila inválida!"); |
||
41 | } |
||
42 | |||
43 | $this->queue = $queue; |
||
44 | return $this; |
||
45 | } |
||
102 |