diff --git a/server/src/Service/Database.php b/server/src/Service/Database.php index 3d3ce15..7c919a1 100644 --- a/server/src/Service/Database.php +++ b/server/src/Service/Database.php @@ -2,11 +2,18 @@ namespace App\Service; +/** + * Class Database + * @package App\Service + */ class Database { private $dotEnvParser; private $conn; + /** + * Database constructor. + */ public function __construct() { $this->dotEnvParser = new DotEnvParser(); @@ -29,13 +36,18 @@ class Database } } + /** + * Get the PDO connection instance + * + * @return \PDO + */ public function getConnection() { return $this->conn; } /** - * gestion des erreurs de retour d'execution de PDO + * Handle PDO execution errors * @param PDOStatement $stmt * @return void */ diff --git a/server/src/Service/DotEnvParser.php b/server/src/Service/DotEnvParser.php index ab3ab16..a589846 100644 --- a/server/src/Service/DotEnvParser.php +++ b/server/src/Service/DotEnvParser.php @@ -4,6 +4,10 @@ namespace App\Service; use josegonzalez\Dotenv\Loader; +/** + * Class DotEnvParser + * @package App\Service + */ class DotEnvParser { private $file; diff --git a/server/src/Service/JsonResponse.php b/server/src/Service/JsonResponse.php index c7d32ec..1642850 100644 --- a/server/src/Service/JsonResponse.php +++ b/server/src/Service/JsonResponse.php @@ -2,6 +2,10 @@ namespace App\Service; +/** + * Class JsonResponse + * @package App\Service + */ class JsonResponse { public function create(int $code, string $message = null, array $data = [])