Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
StringBinary.php
Go to the documentation of this file.
1 <?php
7 
11 
17 class StringBinary extends Column implements
21 {
25  private $nullable;
26 
30  private $default;
31 
35  private $length;
36 
49  public function __construct(
50  string $name,
51  string $type,
52  Table $table,
53  int $length,
54  bool $nullable = true,
55  string $default = null,
56  string $comment = null,
57  string $onCreate = null
58  ) {
59  parent::__construct($name, $type, $table, $comment, $onCreate);
60  $this->nullable = $nullable;
61  $this->default = $default;
62  $this->length = $length;
63  }
64 
70  public function isNullable()
71  {
72  return $this->nullable;
73  }
74 
81  public function getDefault()
82  {
83  return $this->default;
84  }
85 
91  public function getLength()
92  {
93  return $this->length;
94  }
95 
99  public function getDiffSensitiveParams()
100  {
101  return [
102  'type' => $this->getType(),
103  'nullable' => $this->isNullable(),
104  'default' => $this->getDefault(),
105  'length' => $this->getLength(),
106  'comment' => $this->getComment()
107  ];
108  }
109 }
$type
Definition: item.phtml:13
__construct(string $name, string $type, Table $table, int $length, bool $nullable=true, string $default=null, string $comment=null, string $onCreate=null)
$table
Definition: trigger.php:14
if(!isset($_GET['name'])) $name
Definition: log.php:14