Init
This commit is contained in:
43
src/Query.php
Normal file
43
src/Query.php
Normal 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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user