@@ -87,51 +87,51 @@ interface IConfigCommon extends IConfiguration
8787 * @return string The username.
8888 * @throws IIncompleteConfigException
8989 */
90- public function getUser ();
90+ public function getUser (): string ;
9191
9292 /**
9393 * Set the username to use for authentication.
9494 * @param string $user The username.
9595 * @return $this
9696 * @throws IInvalidArgumentException
9797 */
98- public function setUser (string $ user );
98+ public function setUser (string $ user ): IConfigCommon ;
9999
100100 /**
101101 * Get the password to use for authentication.
102102 * @return string The password.
103103 * @throws IIncompleteConfigException
104104 */
105- public function getPasswd ();
105+ public function getPasswd (): string ;
106106
107107 /**
108108 * Set the password to use for authentication.
109109 * @param string $passwd The password.
110110 * @return $this
111111 * @throws IInvalidArgumentException
112112 */
113- public function setPasswd (string $ passwd );
113+ public function setPasswd (string $ passwd ): IConfigCommon ;
114114
115115 /**
116116 * Get the client.
117117 * @return string The client
118118 * @throws IIncompleteConfigException
119119 */
120- public function getClient ();
120+ public function getClient (): string ;
121121
122122 /**
123123 * Set the client.
124124 * @param string $client The client.
125125 * @return $this
126126 * @throws IInvalidArgumentException
127127 */
128- public function setClient (string $ client );
128+ public function setClient (string $ client ): IConfigCommon ;
129129
130130 /**
131131 * Get the SAPRouter in case the connection needs to be made through a firewall.
132132 * @return string|null The saprouter or NULL in case the saprouter hasn't been set.
133133 */
134- public function getSaprouter ();
134+ public function getSaprouter (): ? string ;
135135
136136 /**
137137 * In case the connection needs to be made through a firewall using a SAPRouter,
@@ -141,21 +141,21 @@ public function getSaprouter();
141141 * @return $this
142142 * @throws IInvalidArgumentException
143143 */
144- public function setSaprouter (string $ saprouter );
144+ public function setSaprouter (string $ saprouter ): IConfigCommon ;
145145
146146 /**
147147 * Get the trace level. See constants TRACE_*.
148148 * @return int|null The trace level or NULL in case the trace level hasn't been set.
149149 */
150- public function getTrace ();
150+ public function getTrace (): ? int ;
151151
152152 /**
153153 * Set the trace level. See constants TRACE_*.
154154 * @param int $trace The trace level.
155155 * @return $this
156156 * @throws IInvalidArgumentException
157157 */
158- public function setTrace (int $ trace );
158+ public function setTrace (int $ trace ): IConfigCommon ;
159159
160160 /**
161161 * Only needed it if you want to connect to a non-Unicode backend using a
@@ -164,7 +164,7 @@ public function setTrace(int $trace);
164164 * username/password.
165165 * @return int|null The codepage or NULL in case the codepage hasn't been set.
166166 */
167- public function getCodepage ();
167+ public function getCodepage (): ? int ;
168168
169169 /**
170170 * Only needed it if you want to connect to a non-Unicode backend using a
@@ -175,33 +175,33 @@ public function getCodepage();
175175 * @return $this
176176 * @throws IInvalidArgumentException
177177 */
178- public function setCodepage (int $ codepage );
178+ public function setCodepage (int $ codepage ): IConfigCommon ;
179179
180180 /**
181181 * Get the logon Language.
182182 * @return string|null The logon language or NULL in case the logon language hasn't been set.
183183 */
184- public function getLang ();
184+ public function getLang (): ? string ;
185185
186186 /**
187187 * Set the logon language.
188188 * @param string $lang The logon language.
189189 * @return $this
190190 * @throws IInvalidArgumentException
191191 */
192- public function setLang (string $ lang );
192+ public function setLang (string $ lang ): IConfigCommon ;
193193
194194 /**
195195 * Get the destination in RfcOpenConnection.
196196 * @return string|null The destination or NULL in case the destination hasn't been set.
197197 */
198- public function getDest ();
198+ public function getDest (): ? string ;
199199
200200 /**
201201 * Set the destination in RfcOpenConnection.
202202 * @param string $dest The destination in RfcOpenConnection.
203203 * @return $this
204204 * @throws IInvalidArgumentException
205205 */
206- public function setDest (string $ dest );
206+ public function setDest (string $ dest ): IConfigCommon ;
207207}
0 commit comments