Skip to content

Commit

Permalink
Fix phpdoc, better naming method, Raise code coverage 100%. (#428)
Browse files Browse the repository at this point in the history
* Fix phpdoc ColumnSchema::class, ColumnSchemaBuilder::class, ColumnSchemaInterface::class.
* Add tests and raise code coverage ColumnSchema::class, ColumnSchemaBuilder::class.
  • Loading branch information
terabytesoftw committed Dec 21, 2022
1 parent 5732ff7 commit be68b3c
Show file tree
Hide file tree
Showing 5 changed files with 782 additions and 90 deletions.
23 changes: 23 additions & 0 deletions src/Schema/ColumnSchema.php
Expand Up @@ -9,6 +9,29 @@
use Yiisoft\Db\Expression\ExpressionInterface;
use Yiisoft\Strings\NumericHelper;

/**
* The ColumnSchema class represents the metadata of a column in a database table. It provides information about the
* column's name, type, size, precision, and other details.
*
* The ColumnSchema class is used to store and retrieve metadata about a column in a database table. It is typically
* used in conjunction with the TableSchema class, which represents the metadata of a database table as a whole.
*
* Here is an example of how the ColumnSchema class might be used:
*
* ```php
* use Yiisoft\Db\Schema\ColumnSchema;
*
* $column = new ColumnSchema();
* $column->name('id');
* $column->allowNull(false);
* $column->dbType('int(11)');
* $column->phpType('integer');
* $column->type('integer');
* $column->defaultValue(0);
* $column->autoIncrement(true);
* $column->primaryKey(true);
* ``
*/
class ColumnSchema implements ColumnSchemaInterface
{
private bool $allowNull = false;
Expand Down

0 comments on commit be68b3c

Please sign in to comment.