| Total Complexity | 1 |
| Total Lines | 16 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | class DoctrineSchema |
||
| 11 | { |
||
| 12 | public static function create(): Table |
||
| 13 | { |
||
| 14 | $table = (new Schema())->createTable('api_key'); |
||
| 15 | |||
| 16 | $table |
||
| 17 | ->addColumn('key', 'string') |
||
| 18 | ->setFixed(true) |
||
| 19 | ->setLength(40) |
||
| 20 | ; |
||
| 21 | |||
| 22 | $table->addColumn('ttl', 'integer'); |
||
| 23 | $table->addColumn('identity', 'string'); |
||
| 24 | |||
| 25 | return $table; |
||
| 26 | } |
||
| 28 |