diff --git a/src/Entities/Column.php b/src/Entities/Column.php new file mode 100644 index 0000000..7f1f39b --- /dev/null +++ b/src/Entities/Column.php @@ -0,0 +1,9 @@ +container; + } + + /** + * @param Support $container + * @return Entity + */ + public function setContainer(Support $container): Entity + { + $this->container = $container; + return $this; + } + + +} \ No newline at end of file diff --git a/src/Entities/Table.php b/src/Entities/Table.php new file mode 100644 index 0000000..52bc5fd --- /dev/null +++ b/src/Entities/Table.php @@ -0,0 +1,37 @@ +tableName; + } + + /** + * @param mixed $tableName + * @return Table + */ + public function setTableName($tableName) + { + $this->tableName = $tableName; + return $this; + } + + public function addColumn(string $name, array $options) : self + { + $this->columns[] = $column = (new Column()) + ->setContainer($this->getContainer()) + ->setOptions($options); + return $this; + } +} \ No newline at end of file