Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Integer.php
Go to the documentation of this file.
1 <?php
7 
11 
17 class Integer extends Column implements
23 {
27  private $nullable;
28 
32  private $default;
33 
37  private $unsigned;
41  private $padding;
45  private $identity;
46 
63  public function __construct(
64  string $name,
65  string $type,
66  Table $table,
67  int $padding,
68  bool $nullable = true,
69  bool $unsigned = false,
70  bool $identity = false,
71  int $default = null,
72  string $comment = null,
73  string $onCreate = null
74  ) {
75  parent::__construct($name, $type, $table, $comment, $onCreate);
76  $this->nullable = $nullable;
77  $this->default = $default;
78  $this->unsigned = $unsigned;
79  $this->padding = $padding;
80  $this->identity = $identity;
81  }
82 
88  public function getPadding()
89  {
90  return $this->padding;
91  }
92 
98  public function isNullable()
99  {
100  return $this->nullable;
101  }
102 
109  public function getDefault()
110  {
111  return $this->default;
112  }
113 
119  public function isUnsigned()
120  {
121  return $this->unsigned;
122  }
123 
129  public function isIdentity()
130  {
131  return $this->identity;
132  }
133 
137  public function getDiffSensitiveParams()
138  {
139  return [
140  'type' => $this->getType(),
141  'nullable' => $this->isNullable(),
142  'padding' => $this->getPadding(),
143  'unsigned' => $this->isUnsigned(),
144  'identity' => $this->isIdentity(),
145  'default' => $this->getDefault(),
146  'comment' => $this->getComment()
147  ];
148  }
149 }
$type
Definition: item.phtml:13
__construct(string $name, string $type, Table $table, int $padding, bool $nullable=true, bool $unsigned=false, bool $identity=false, int $default=null, string $comment=null, string $onCreate=null)
Definition: Integer.php:63
$table
Definition: trigger.php:14
if(!isset($_GET['name'])) $name
Definition: log.php:14