Security update for Core, with self-updated composer
[yaffs-website] / web / core / modules / update / tests / modules / update_test / src / Plugin / Archiver / UpdateTestArchiver.php
1 <?php
2
3 namespace Drupal\update_test\Plugin\Archiver;
4
5 use Drupal\Core\Archiver\ArchiverInterface;
6
7 /**
8  * Defines a test archiver implementation.
9  *
10  * @Archiver(
11  *   id = "update_test_archiver",
12  *   title = @Translation("Update Test Archiver"),
13  *   extensions = {"update-test-extension"}
14  * )
15  */
16 class UpdateTestArchiver implements ArchiverInterface {
17
18   /**
19    * {@inheritdoc}
20    */
21   public function add($file_path) {
22     return $this;
23   }
24
25   /**
26    * {@inheritdoc}
27    */
28   public function remove($path) {
29     return $this;
30   }
31
32   /**
33    * {@inheritdoc}
34    */
35   public function extract($path, array $files = []) {
36     return $this;
37   }
38
39   /**
40    * {@inheritdoc}
41    */
42   public function listContents() {
43     return [];
44   }
45
46 }