Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
LlNextChainPatch.php
Go to the documentation of this file.
1 <?php
7 
12 
16 class LlNextChainPatch implements
20 {
24  private $resourceConnection;
25 
30  public function __construct(ResourceConnection $resourceConnection)
31  {
32  $this->resourceConnection = $resourceConnection;
33  }
34 
38  public static function getVersion()
39  {
40  return '0.0.5';
41  }
42 
46  public function getAliases()
47  {
48  return [];
49  }
50 
54  public function apply()
55  {
56  $adapter = $this->resourceConnection->getConnection();
57  $adapter->insertArray('reference_table', ['for_patch_testing'], ['very_secret_string']);
58  }
59 
60  public function revert()
61  {
62  $adapter = $this->resourceConnection->getConnection();
63  $adapter->delete('reference_table', ['for_patch_testing = ?' => 'very_secret_string']);
64  }
65 
69  public static function getDependencies()
70  {
71  return [
72  ZFirstPatch::class
73  ];
74  }
75 }
$adapter
Definition: webapi_user.php:16