the `add` method signature is `public function add(ResourceInterface $resource, $files, $recursive = true);`