Skip to content

Commit beb4dbc

Browse files
committed
replace fully qualified class names with use #6
1 parent 7bbed21 commit beb4dbc

8 files changed

+78
-57
lines changed

Diff for: src/Api/IApi.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -19,26 +19,26 @@ interface IApi extends IJsonSerializable
1919
{
2020
/**
2121
* Add a value, struct or table of the remote function.
22-
* @param \phpsap\interfaces\Api\IValue $value
22+
* @param IValue $value
2323
* @return $this
2424
*/
2525
public function add(IValue $value);
2626

2727
/**
2828
* Get all input values of the remote function.
29-
* @return \phpsap\interfaces\Api\IValue[]
29+
* @return IValue[]
3030
*/
3131
public function getInputValues();
3232

3333
/**
3434
* Get all output values of the remote function.
35-
* @return \phpsap\interfaces\Api\IValue[]
35+
* @return IValue[]
3636
*/
3737
public function getOutputValues();
3838

3939
/**
4040
* Get all tables of the remote function.
41-
* @return \phpsap\interfaces\Api\ITable[]
41+
* @return ITable[]
4242
*/
4343
public function getTables();
4444
}

Diff for: src/Api/IArray.php

+6-3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
namespace phpsap\interfaces\Api;
44

5+
use phpsap\interfaces\exceptions\IArrayElementMissingException;
6+
use phpsap\interfaces\exceptions\IInvalidArgumentException;
7+
58
/**
69
* Interface IArray
710
*
@@ -22,14 +25,14 @@ interface IArray extends IValue
2225
* Cast a given output value to the implemented value.
2326
* @param array $value The output array to typecast.
2427
* @return array
25-
* @throws \phpsap\interfaces\exceptions\IArrayElementMissingException
26-
* @throws \phpsap\interfaces\exceptions\IInvalidArgumentException
28+
* @throws IArrayElementMissingException
29+
* @throws IInvalidArgumentException
2730
*/
2831
public function cast($value);
2932

3033
/**
3134
* Return an array of member elements.
32-
* @return \phpsap\interfaces\Api\IElement[]
35+
* @return IElement[]
3336
*/
3437
public function getMembers();
3538
}

Diff for: src/Api/IElement.php

+5-2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
namespace phpsap\interfaces\Api;
44

5+
use phpsap\DateTime\SapDateInterval;
6+
use phpsap\DateTime\SapDateTime;
7+
use phpsap\interfaces\exceptions\IInvalidArgumentException;
58
use phpsap\interfaces\Util\IJsonSerializable;
69

710
/**
@@ -87,8 +90,8 @@ public function getName();
8790
/**
8891
* Cast a given output value to the implemented value.
8992
* @param bool|int|float|string $value The output to typecast.
90-
* @return bool|int|float|string|\phpsap\DateTime\SapDateTime|\phpsap\DateTime\SapDateInterval
91-
* @throws \phpsap\interfaces\exceptions\IInvalidArgumentException
93+
* @return bool|int|float|string|SapDateTime|SapDateInterval
94+
* @throws IInvalidArgumentException
9295
*/
9396
public function cast($value);
9497
}

Diff for: src/Config/IConfigCommon.php

+14-11
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
namespace phpsap\interfaces\Config;
44

5+
use phpsap\interfaces\exceptions\IIncompleteConfigException;
6+
use phpsap\interfaces\exceptions\IInvalidArgumentException;
7+
58
/**
69
* Interface IConfig
710
*
@@ -82,45 +85,45 @@ interface IConfigCommon extends IConfiguration
8285
/**
8386
* Get the username to use for authentication.
8487
* @return string The username.
85-
* @throws \phpsap\interfaces\exceptions\IIncompleteConfigException
88+
* @throws IIncompleteConfigException
8689
*/
8790
public function getUser();
8891

8992
/**
9093
* Set the username to use for authentication.
9194
* @param string $user The username.
9295
* @return $this
93-
* @throws \phpsap\interfaces\exceptions\IInvalidArgumentException
96+
* @throws IInvalidArgumentException
9497
*/
9598
public function setUser($user);
9699

97100
/**
98101
* Get the password to use for authentication.
99102
* @return string The password.
100-
* @throws \phpsap\interfaces\exceptions\IIncompleteConfigException
103+
* @throws IIncompleteConfigException
101104
*/
102105
public function getPasswd();
103106

104107
/**
105108
* Set the password to use for authentication.
106109
* @param string $passwd The password.
107110
* @return $this
108-
* @throws \phpsap\interfaces\exceptions\IInvalidArgumentException
111+
* @throws IInvalidArgumentException
109112
*/
110113
public function setPasswd($passwd);
111114

112115
/**
113116
* Get the client.
114117
* @return string The client
115-
* @throws \phpsap\interfaces\exceptions\IIncompleteConfigException
118+
* @throws IIncompleteConfigException
116119
*/
117120
public function getClient();
118121

119122
/**
120123
* Set the client.
121124
* @param string $client The client.
122125
* @return $this
123-
* @throws \phpsap\interfaces\exceptions\IInvalidArgumentException
126+
* @throws IInvalidArgumentException
124127
*/
125128
public function setClient($client);
126129

@@ -136,7 +139,7 @@ public function getSaprouter();
136139
* /H/hostname/S/portnumber/H/
137140
* @param string $saprouter The saprouter.
138141
* @return $this
139-
* @throws \phpsap\interfaces\exceptions\IInvalidArgumentException
142+
* @throws IInvalidArgumentException
140143
*/
141144
public function setSaprouter($saprouter);
142145

@@ -150,7 +153,7 @@ public function getTrace();
150153
* Set the trace level. See constants TRACE_*.
151154
* @param int $trace The trace level.
152155
* @return $this
153-
* @throws \phpsap\interfaces\exceptions\IInvalidArgumentException
156+
* @throws IInvalidArgumentException
154157
*/
155158
public function setTrace($trace);
156159

@@ -170,7 +173,7 @@ public function getCodepage();
170173
* username/password.
171174
* @param int $codepage The codepage.
172175
* @return $this
173-
* @throws \phpsap\interfaces\exceptions\IInvalidArgumentException
176+
* @throws IInvalidArgumentException
174177
*/
175178
public function setCodepage($codepage);
176179

@@ -184,7 +187,7 @@ public function getLang();
184187
* Set the logon language.
185188
* @param string $lang The logon language.
186189
* @return $this
187-
* @throws \phpsap\interfaces\exceptions\IInvalidArgumentException
190+
* @throws IInvalidArgumentException
188191
*/
189192
public function setLang($lang);
190193

@@ -198,7 +201,7 @@ public function getDest();
198201
* Set the destination in RfcOpenConnection.
199202
* @param string $dest The destination in RfcOpenConnection.
200203
* @return $this
201-
* @throws \phpsap\interfaces\exceptions\IInvalidArgumentException
204+
* @throws IInvalidArgumentException
202205
*/
203206
public function setDest($dest);
204207
}

Diff for: src/Config/IConfigTypeA.php

+9-6
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
namespace phpsap\interfaces\Config;
44

5+
use phpsap\interfaces\exceptions\IIncompleteConfigException;
6+
use phpsap\interfaces\exceptions\IInvalidArgumentException;
7+
58
/**
69
* Interface IConfigTypeA
710
*
@@ -37,30 +40,30 @@ interface IConfigTypeA extends IConfigCommon
3740
/**
3841
* Get the hostname of a specific SAP application server.
3942
* @return string The hostname of a specific SAP application server.
40-
* @throws \phpsap\interfaces\exceptions\IIncompleteConfigException
43+
* @throws IIncompleteConfigException
4144
*/
4245
public function getAshost();
4346

4447
/**
4548
* Set the hostname of a specific SAP application server.
4649
* @param string $ashost The hostname of a specific SAP application server.
4750
* @return $this
48-
* @throws \phpsap\interfaces\exceptions\IInvalidArgumentException
51+
* @throws IInvalidArgumentException
4952
*/
5053
public function setAshost($ashost);
5154

5255
/**
5356
* Get the SAP system number.
5457
* @return string The SAP system number.
55-
* @throws \phpsap\interfaces\exceptions\IIncompleteConfigException
58+
* @throws IIncompleteConfigException
5659
*/
5760
public function getSysnr();
5861

5962
/**
6063
* Set the SAP system number.
6164
* @param string $sysnr The SAP system number.
6265
* @return $this
63-
* @throws \phpsap\interfaces\exceptions\IInvalidArgumentException
66+
* @throws IInvalidArgumentException
6467
*/
6568
public function setSysnr($sysnr);
6669

@@ -74,7 +77,7 @@ public function getGwhost();
7477
* Set the gateway host on the application server.
7578
* @param string $gwhost The gateway host.
7679
* @return $this
77-
* @throws \phpsap\interfaces\exceptions\IInvalidArgumentException
80+
* @throws IInvalidArgumentException
7881
*/
7982
public function setGwhost($gwhost);
8083

@@ -88,7 +91,7 @@ public function getGwserv();
8891
* Set the gateway service on the application server.
8992
* @param string $gwserv The gateway service on the application server.
9093
* @return $this
91-
* @throws \phpsap\interfaces\exceptions\IInvalidArgumentException
94+
* @throws IInvalidArgumentException
9295
*/
9396
public function setGwserv($gwserv);
9497
}

Diff for: src/Config/IConfigTypeB.php

+7-4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
namespace phpsap\interfaces\Config;
44

5+
use phpsap\interfaces\exceptions\IIncompleteConfigException;
6+
use phpsap\interfaces\exceptions\IInvalidArgumentException;
7+
58
/**
69
* Interface IConfigTypeB
710
*
@@ -33,15 +36,15 @@ interface IConfigTypeB extends IConfigCommon
3336
/**
3437
* Get the host name of the message server.
3538
* @return string
36-
* @throws \phpsap\interfaces\exceptions\IIncompleteConfigException
39+
* @throws IIncompleteConfigException
3740
*/
3841
public function getMshost();
3942

4043
/**
4144
* Set the host name of the message server.
4245
* @param string $mshost The host name of the message server.
4346
* @return $this
44-
* @throws \phpsap\interfaces\exceptions\IInvalidArgumentException
47+
* @throws IInvalidArgumentException
4548
*/
4649
public function setMshost($mshost);
4750

@@ -55,7 +58,7 @@ public function getR3name();
5558
* Set the name of SAP system, optional; default: destination
5659
* @param string $r3name The name of the SAP system.
5760
* @return $this
58-
* @throws \phpsap\interfaces\exceptions\IInvalidArgumentException
61+
* @throws IInvalidArgumentException
5962
*/
6063
public function setR3name($r3name);
6164

@@ -69,7 +72,7 @@ public function getGroup();
6972
* Set the group name of the application servers, optional; default: PUBLIC.
7073
* @param string $group The group name of the application servers.
7174
* @return $this
72-
* @throws \phpsap\interfaces\exceptions\IInvalidArgumentException
75+
* @throws IInvalidArgumentException
7376
*/
7477
public function setGroup($group);
7578
}

0 commit comments

Comments
 (0)