mirror of
https://github.com/twisterarmy/twister.git
synced 2025-03-13 05:41:22 +00:00
This commit is contained in:
parent
1528027a29
commit
b4ccf128eb
25
src/Table.php
Normal file
25
src/Table.php
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Twister\DBAL;
|
||||||
|
|
||||||
|
use Twister\DBAL\Types;
|
||||||
|
|
||||||
|
class Table
|
||||||
|
{
|
||||||
|
protected $fields = null;
|
||||||
|
|
||||||
|
public function __construct(array $fields = null)
|
||||||
|
{
|
||||||
|
$this->fields =& $fields;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function __get($field)
|
||||||
|
{
|
||||||
|
return $this->fields[$field];
|
||||||
|
}
|
||||||
|
|
||||||
|
public static function build($db, string $table)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user