1111abstract class Adapter
1212{
1313 protected string $ database = '' ;
14+ protected string $ hostname = '' ;
1415
1516 protected string $ namespace = '' ;
1617
@@ -79,15 +80,15 @@ public function resetDebug(): static
7980 *
8081 * @param string $namespace
8182 *
82- * @return bool
83+ * @return $this
8384 * @throws DatabaseException
8485 *
8586 */
86- public function setNamespace (string $ namespace ): bool
87+ public function setNamespace (string $ namespace ): static
8788 {
8889 $ this ->namespace = $ this ->filter ($ namespace );
8990
90- return true ;
91+ return $ this ;
9192 }
9293
9394 /**
@@ -103,6 +104,29 @@ public function getNamespace(): string
103104 return $ this ->namespace ;
104105 }
105106
107+ /**
108+ * Set Hostname.
109+ *
110+ * @param string $hostname
111+ * @return $this
112+ */
113+ public function setHostname (string $ hostname ): static
114+ {
115+ $ this ->hostname = $ hostname ;
116+
117+ return $ this ;
118+ }
119+
120+ /**
121+ * Get Hostname.
122+ *
123+ * @return string
124+ */
125+ public function getHostname (): string
126+ {
127+ return $ this ->hostname ;
128+ }
129+
106130 /**
107131 * Set Database.
108132 *
@@ -950,8 +974,20 @@ abstract public function getSupportForUpserts(): bool;
950974 */
951975 abstract public function getSupportForCacheSkipOnFailure (): bool ;
952976
977+ /**
978+ * Is reconnection supported?
979+ *
980+ * @return bool
981+ */
953982 abstract public function getSupportForReconnection (): bool ;
954983
984+ /**
985+ * Is hostname supported?
986+ *
987+ * @return bool
988+ */
989+ abstract public function getSupportForHostname (): bool ;
990+
955991 /**
956992 * Get current attribute count from collection document
957993 *
0 commit comments