/**
  * @param $command
  * @return void
  */
 protected function prepareAttachmentInput($command)
 {
     if ($command->attachmentsInput && is_array($command->attachmentsInput)) {
         $attachmentInputs = array();
         foreach ($command->attachmentsInput as $each) {
             $input = $this->decodeAttachmentInput($each);
             $attachmentInputs[] = AttachmentInput::createFromArray($input);
         }
         $command->attachmentsInput = $attachmentInputs;
     }
 }