dsn = "mysql:host=".$_ENV["HOST"].";dbname=".$_ENV["DATABASE"].";"; $this->login = $_ENV["USER"]; $this->password = $_ENV["PASSWORD"]; } function connect(): int|Connection { try { echo $this->dsn." ".$this->login." ".$this->password; $connection = new Connection($this->dsn,$this->login,$this->password); echo "OKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK"; }catch (PDOException){ throw new PDOException(); } return $connection; } }