| Total Complexity | 5 |
| Total Lines | 22 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | class EntityArgumentsInterpreter |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * For a accurate usage, please reffer to https://www.rabbitmq.com/queues.html#optional-arguments |
||
| 11 | * |
||
| 12 | * @param AMQPTable|array $entityArguments |
||
| 13 | * @return AMQPTable |
||
| 14 | */ |
||
| 15 | public static function interpretArguments($entityArguments): AMQPTable |
||
| 16 | { |
||
| 17 | if ($entityArguments instanceof AMQPTable) { |
||
| 18 | return $entityArguments; |
||
| 19 | } |
||
| 20 | return new AMQPTable($entityArguments); |
||
| 21 | } |
||
| 22 | |||
| 23 | public static function interpretProperties(array $attributes, array $properties): array |
||
| 29 | } |
||
| 30 | } |
||
| 31 |