Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Unsigned.php
Go to the documentation of this file.
1 <?php
8 
12 
20 {
24  const UNSIGNED_FLAG = 'unsigned';
25 
30  public function toDefinition(ElementInterface $column)
31  {
32  return $column->isUnsigned() ? strtoupper(self::UNSIGNED_FLAG) : '';
33  }
34 
38  public function fromDefinition(array $data)
39  {
40  $data['unsigned'] = stripos($data['definition'], self::UNSIGNED_FLAG) !== false;
41  return $data;
42  }
43 }