-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathIConfigTypeB.php
80 lines (67 loc) · 2.18 KB
/
IConfigTypeB.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
<?php
declare(strict_types=1);
namespace phpsap\interfaces\Config;
use phpsap\interfaces\exceptions\IIncompleteConfigException;
use phpsap\interfaces\exceptions\IInvalidArgumentException;
/**
* Interface IConfigTypeB
*
* Interface to configure connection parameters for SAP remote function calls using
* load balancing (type B).
*
* @package phpsap\interfaces\Config
* @author Gregor J.
* @license MIT
*/
interface IConfigTypeB extends IConfiguration
{
/**
* The host name of the message server.
*/
public const JSON_MSHOST = 'mshost';
/**
* The name of SAP system, optional; default: destination
*/
public const JSON_R3NAME = 'r3name';
/**
* The group name of the application servers.
*/
public const JSON_GROUP = 'group';
/**
* Get the host name of the message server.
* @return string
* @throws IIncompleteConfigException
*/
public function getMshost(): string;
/**
* Set the host name of the message server.
* @param string $mshost The host name of the message server.
* @return $this
* @throws IInvalidArgumentException
*/
public function setMshost(string $mshost): IConfigTypeB;
/**
* Get the name of SAP system, optional; default: destination
* @return string|null The name of the SAP system or NULL in case no name has been defined.
*/
public function getR3name(): ?string;
/**
* Set the name of SAP system, optional; default: destination
* @param string $r3name The name of the SAP system.
* @return $this
* @throws IInvalidArgumentException
*/
public function setR3name(string $r3name): IConfigTypeB;
/**
* Get the group name of the application servers, optional; default: PUBLIC.
* @return string|null The name of the group or NULL in case no group has been defined.
*/
public function getGroup(): ?string;
/**
* Set the group name of the application servers, optional; default: PUBLIC.
* @param string $group The group name of the application servers.
* @return $this
* @throws IInvalidArgumentException
*/
public function setGroup(string $group): IConfigTypeB;
}