Skip to content

Commit f6ff887

Browse files
Add phpdoc ColumnSchema class. (#216)
1 parent 8daca98 commit f6ff887

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

src/ColumnSchema.php

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,29 @@
66

77
use Yiisoft\Db\Schema\AbstractColumnSchema;
88

9+
/**
10+
* Represents the metadata of a column in a database table for SQLite Server. It provides information about the column's
11+
* name, type, size, precision, and other details.
12+
*
13+
* Is used to store and retrieve metadata about a column in a database table. It is typically used in conjunction with
14+
* the {@see TableSchema}, which represents the metadata of a database table as a whole.
15+
*
16+
* The following code shows how to use:
17+
*
18+
* ```php
19+
* use Yiisoft\Db\Sqlite\ColumnSchema;
20+
*
21+
* $column = new ColumnSchema();
22+
* $column->name('id');
23+
* $column->allowNull(false);
24+
* $column->dbType('integer');
25+
* $column->phpType('integer');
26+
* $column->type('integer');
27+
* $column->defaultValue(0);
28+
* $column->autoIncrement(true);
29+
* $column->primaryKey(true);
30+
* ```
31+
*/
932
final class ColumnSchema extends AbstractColumnSchema
1033
{
1134
}

0 commit comments

Comments
 (0)