+ $table = null;
+ if (count($this->args) < 1 || count($this->args) > 2) {
+ throw new CommandArgsException('Invalid arguments');
+ }
+ if (count($this->args) == 2) {
+ $table = strtolower($this->args[1]);
+ if (!in_array($table, ['photo', 'attach'])) {
+ throw new CommandArgsException('Invalid table');
+ }
+ }