Definition.php
36 lines
| 1 | <?php |
| 2 | |
| 3 | /** |
| 4 | * Represents a single database column definition with fluent attribute configuration. |
| 5 | * Supports type selection, length, nullability, defaults, and indexing through chainable methods. |
| 6 | * Feeds column metadata into the schema structure and compiler pipeline. |
| 7 | * |
| 8 | * @package Framework |
| 9 | * @subpackage Database\Schema\Definitions |
| 10 | * @since 1.0.0 |
| 11 | */ |
| 12 | namespace Kirki\Framework\Database\Schema\Definitions; |
| 13 | |
| 14 | \defined('ABSPATH') || exit; |
| 15 | use Kirki\Framework\Supports\Flex; |
| 16 | /** |
| 17 | * Define the definition of the database schema columns. |
| 18 | * |
| 19 | * @method $this comment(string $comment) |
| 20 | * @method $this default($value) |
| 21 | * @method $this nullable() |
| 22 | * @method $this auto_increment() |
| 23 | * @method $this unsigned() |
| 24 | * @method $this precision(int $precision) |
| 25 | * @method $this total(int $total) |
| 26 | * @method $this places(int $places) |
| 27 | * @method $this length(int $length) |
| 28 | * @method $this primary() |
| 29 | * @method $this unique() |
| 30 | * @method $this use_current() |
| 31 | */ |
| 32 | class Definition extends Flex |
| 33 | { |
| 34 | // Column definition |
| 35 | } |
| 36 |