diff --git a/src/Abstract/Sql.php b/src/Abstract/Sql.php index 667a768..73518c2 100644 --- a/src/Abstract/Sql.php +++ b/src/Abstract/Sql.php @@ -6,12 +6,13 @@ abstract class Sql { public abstract function getSql(): string; public abstract function getParameters(): array; - public function bindParameters(): void + public function bindParameters(): string { $params = $this->getParameters(); $stmt = $this->getSql(); foreach ($params as $key => $value) { $stmt = str_replace($key, $value, $stmt); } + return $stmt; } } \ No newline at end of file