Skip to content

Commit

Permalink
correcao
Browse files Browse the repository at this point in the history
  • Loading branch information
Bruno Morais authored and Bruno Morais committed Nov 19, 2023
1 parent 0f8de66 commit 8cd2b3f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/DatalayerTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ private function getInstance()
* @return Crud
*
*/
protected function setInstance(?PDO $pdo)
protected function setInstance(?PDO $pdo): self
{
$this->instance = $pdo;
return $this;
Expand All @@ -107,7 +107,7 @@ protected function setInstance(?PDO $pdo)
* @param string $database
* @return $this
*/
protected function setDatabase(string $database)
protected function setDatabase(string $database): self
{
$this->database = $database;
$this->setInstance(null);
Expand All @@ -126,7 +126,7 @@ protected function getDatabase(): string
* @param string $tableName
* @return Crud
*/
protected function setFields(string $fields)
protected function setFields(string $fields): self
{
$this->fields = $fields;
return $this;
Expand Down Expand Up @@ -175,7 +175,7 @@ protected function setClassModel(string $classModel): self
return $this;
}

protected function getClassModel()
protected function getClassModel(): string
{
return $this->classModel;
}
Expand Down

0 comments on commit 8cd2b3f

Please sign in to comment.