| 1 | <?php |
||
| 4 | trait StringChecker |
||
| 5 | { |
||
| 6 | use ArrayChecker; |
||
| 7 | |||
| 8 | /** |
||
| 9 | * This command, with all its arguments, ready to be sent to Disque |
||
| 10 | * |
||
| 11 | * @param array $arguments Arguments |
||
| 12 | * @param int $numberOfElements Number of elements that must be present in $arguments |
||
| 13 | * @throws InvalidCommandArgumentException |
||
| 14 | */ |
||
| 15 | 50 | protected function checkStringArgument(array $arguments, $numberOfElements = 1) |
|
| 21 | |||
| 22 | /** |
||
| 23 | * This command, with all its arguments, ready to be sent to Disque |
||
| 24 | * |
||
| 25 | * @param array $arguments Arguments |
||
| 26 | * @throws InvalidCommandArgumentException |
||
| 27 | */ |
||
| 28 | 53 | protected function checkStringArguments(array $arguments) |
|
| 40 | } |