This commit is contained in:
Gregory Letellier
2023-10-26 14:34:20 +02:00
commit a2dc633be4
14 changed files with 5206 additions and 0 deletions

43
src/Query.php Normal file
View File

@@ -0,0 +1,43 @@
<?php
namespace Kletellier\PdoWrapper;
class Query
{
public string $query;
public array $data;
public function __construct()
{
$this->query = "";
$this->data = [];
}
public function addData($value)
{
$this->data[] = $value;
}
public function getQuery(): string
{
return $this->query;
}
public function setQuery(string $query)
{
$this->query = $query;
return $this;
}
public function getData(): array
{
return $this->data;
}
public function setData(array $data)
{
$this->data = $data;
return $this;
}
}