small
This commit is contained in:
Malloc of Kuzkycyziklistan 2017-03-06 16:03:02 -06:00
parent 2f777a3b0d
commit d40198ab95

View file

@ -3,8 +3,20 @@ namespace AroMVC\Database;
class Insertable extends Queryable {
protected $table = null;
protected $names = [];
protected $values = [];
protected $fields = [];
public function __construct(string $table) {
$this->table = $table;
}
public function value(string $name, $value): Insertable {
$fields[$name] = $value;
return $this;
}
public function values(array $values): Insertable {
foreach($values as $name => $value)
$fields[$name] = $value;
return $this;
}
}