diff --git a/src/DatalayerTrait.php b/src/DatalayerTrait.php index 3174ee5..5d67b81 100755 --- a/src/DatalayerTrait.php +++ b/src/DatalayerTrait.php @@ -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; @@ -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); @@ -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; @@ -175,7 +175,7 @@ protected function setClassModel(string $classModel): self return $this; } - protected function getClassModel() + protected function getClassModel(): string { return $this->classModel; }