fix code cleanup mistakes

This commit is contained in:
2021-04-02 22:41:24 +02:00
parent eea0aeacc6
commit 3d703fd7d5
5 changed files with 9 additions and 8 deletions

View File

@@ -21,7 +21,7 @@ class Delete extends Query {
return $this;
}
public function execute() {
public function execute(): bool {
return $this->sql->executeDelete($this);
}

View File

@@ -19,6 +19,7 @@ abstract class Query {
return $this;
}
public abstract function execute(): bool;
// can actually return bool|array (depending on success and query type)
public abstract function execute();
}

View File

@@ -80,7 +80,7 @@ class Select extends Query {
return $this;
}
public function execute(): bool {
public function execute() {
return $this->sql->executeSelect($this);
}

View File

@@ -28,7 +28,7 @@ class Update extends Query {
return $this;
}
public function execute(): bool {
public function execute() {
return $this->sql->executeUpdate($this);
}