Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Internal.php
Go to the documentation of this file.
1 <?php
7 
12 
18 {
22  const PRIMARY_NAME = "PRIMARY";
23 
27  private $columns;
28 
38  public function __construct(
39  $name,
40  $type,
41  Table $table,
42  string $nameWithoutPrefix,
43  array $columns
44  ) {
45  parent::__construct($name, $type, $table, $nameWithoutPrefix);
46  $this->columns = $columns;
47  }
48 
54  public function getColumns()
55  {
56  return $this->columns;
57  }
58 
64  public function getColumnNames()
65  {
66  return array_map(
67  function (Column $column) {
68  return $column->getName();
69  },
70  $this->getColumns()
71  );
72  }
73 
77  public function getDiffSensitiveParams()
78  {
79  return [
80  'type' => $this->getType(),
81  'columns' => $this->getColumnNames()
82  ];
83  }
84 }
__construct( $name, $type, Table $table, string $nameWithoutPrefix, array $columns)
Definition: Internal.php:38
$columns
Definition: default.phtml:15
$type
Definition: item.phtml:13
$table
Definition: trigger.php:14
if(!isset($_GET['name'])) $name
Definition: log.php:14