Skip to content

Commit 157ddbf

Browse files
committed
add visibility to const #8
1 parent 05207cb commit 157ddbf

File tree

9 files changed

+41
-41
lines changed

9 files changed

+41
-41
lines changed

src/Api/IArray.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ interface IArray extends IValue
1919
/**
2020
* JSON configuration key for members array.
2121
*/
22-
const JSON_MEMBERS = 'members';
22+
public const JSON_MEMBERS = 'members';
2323

2424
/**
2525
* Cast a given output value to the implemented value.

src/Api/IElement.php

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -22,58 +22,58 @@ interface IElement extends IJsonSerializable
2222
/**
2323
* API element that casts to PHP string.
2424
*/
25-
const TYPE_STRING = 'string';
25+
public const TYPE_STRING = 'string';
2626

2727
/**
2828
* API element that casts to PHP int.
2929
*/
30-
const TYPE_INTEGER = 'int';
30+
public const TYPE_INTEGER = 'int';
3131

3232
/**
3333
* API element that casts to PHP bool.
3434
*/
35-
const TYPE_BOOLEAN = 'bool';
35+
public const TYPE_BOOLEAN = 'bool';
3636

3737
/**
3838
* API element that casts to PHP float.
3939
*/
40-
const TYPE_FLOAT = 'float';
40+
public const TYPE_FLOAT = 'float';
4141

4242
/**
4343
* API element that casts to a hexadecimal encoded binary to a binary.
4444
* (direction: output)
4545
*/
46-
const TYPE_HEXBIN = 'hexbin';
46+
public const TYPE_HEXBIN = 'hexbin';
4747

4848
/**
4949
* API date element that casts to a DateTime object.
5050
*/
51-
const TYPE_DATE = 'date';
51+
public const TYPE_DATE = 'date';
5252

5353
/**
5454
* API time element that casts to a DateTime object.
5555
*/
56-
const TYPE_TIME = 'time';
56+
public const TYPE_TIME = 'time';
5757

5858
/**
5959
* API virtual timestamp element (e.g. string) that casts to a DateTime object.
6060
*/
61-
const TYPE_TIMESTAMP = 'timestamp';
61+
public const TYPE_TIMESTAMP = 'timestamp';
6262

6363
/**
6464
* API virtual calendar week element (e.g. string) that casts to a DateTime object.
6565
*/
66-
const TYPE_WEEK = 'week';
66+
public const TYPE_WEEK = 'week';
6767

6868
/**
6969
* JSON configuration key for type value.
7070
*/
71-
const JSON_TYPE = 'type';
71+
public const JSON_TYPE = 'type';
7272

7373
/**
7474
* JSON configuration key for name value.
7575
*/
76-
const JSON_NAME = 'name';
76+
public const JSON_NAME = 'name';
7777

7878
/**
7979
* The PHP type of the element.

src/Api/IStruct.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@ interface IStruct extends IArray
1616
/**
1717
* API element that casts to an associative array in PHP.
1818
*/
19-
const TYPE_STRUCT = 'struct';
19+
public const TYPE_STRUCT = 'struct';
2020
}

src/Api/ITable.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ interface ITable extends IArray
1616
/**
1717
* API table element.
1818
*/
19-
const DIRECTION_TABLE = 'table';
19+
public const DIRECTION_TABLE = 'table';
2020

2121
/**
2222
* API element that casts to a PHP array of associative arrays.
2323
*/
24-
const TYPE_TABLE = 'table';
24+
public const TYPE_TABLE = 'table';
2525
}

src/Api/IValue.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,22 +17,22 @@ interface IValue extends IElement
1717
/**
1818
* API input element.
1919
*/
20-
const DIRECTION_INPUT = 'input';
20+
public const DIRECTION_INPUT = 'input';
2121

2222
/**
2323
* API output element.
2424
*/
25-
const DIRECTION_OUTPUT = 'output';
25+
public const DIRECTION_OUTPUT = 'output';
2626

2727
/**
2828
* JSON configuration key for direction value.
2929
*/
30-
const JSON_DIRECTION = 'direction';
30+
public const JSON_DIRECTION = 'direction';
3131

3232
/**
3333
* JSON configuration key for is optional flag.
3434
*/
35-
const JSON_OPTIONAL = 'optional';
35+
public const JSON_OPTIONAL = 'optional';
3636

3737
/**
3838
* Get the direction of the parameter.

src/Config/IConfigCommon.php

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -20,67 +20,67 @@ interface IConfigCommon extends IConfiguration
2020
/**
2121
* Disable tracing.
2222
*/
23-
const TRACE_OFF = 0;
23+
public const TRACE_OFF = 0;
2424

2525
/**
2626
* Brief trace level.
2727
*/
28-
const TRACE_BRIEF = 1;
28+
public const TRACE_BRIEF = 1;
2929

3030
/**
3131
* Verbose trace level.
3232
*/
33-
const TRACE_VERBOSE = 2;
33+
public const TRACE_VERBOSE = 2;
3434

3535
/**
3636
* Full trace level.
3737
*/
38-
const TRACE_FULL = 3;
38+
public const TRACE_FULL = 3;
3939

4040
/**
4141
* The username to use for authentication.
4242
*/
43-
const JSON_USER = 'user';
43+
public const JSON_USER = 'user';
4444

4545
/**
4646
* The password to use for authentication.
4747
*/
48-
const JSON_PASSWD = 'passwd';
48+
public const JSON_PASSWD = 'passwd';
4949

5050
/**
5151
* The destination in RfcOpen.
5252
*/
53-
const JSON_CLIENT = 'client';
53+
public const JSON_CLIENT = 'client';
5454

5555
/**
5656
* If the connection needs to be made through a firewall using a SAPRouter,
5757
* specify the SAPRouter parameters in the following format:
5858
* /H/hostname/S/portnumber/H/
5959
*/
60-
const JSON_SAPROUTER = 'saprouter';
60+
public const JSON_SAPROUTER = 'saprouter';
6161

6262
/**
6363
* The trace level (0-3). See constants TRACE_*.
6464
*/
65-
const JSON_TRACE = 'trace';
65+
public const JSON_TRACE = 'trace';
6666

6767
/**
6868
* Only needed it if you want to connect to a non-Unicode backend using a
6969
* non-ISO-Latin-1 user name or password. The RFC library will then use that
7070
* codepage for the initial handshake, thus preserving the characters in
7171
* username/password.
7272
*/
73-
const JSON_CODEPAGE = 'codepage';
73+
public const JSON_CODEPAGE = 'codepage';
7474

7575
/**
7676
* The logon language.
7777
*/
78-
const JSON_LANG = 'lang';
78+
public const JSON_LANG = 'lang';
7979

8080
/**
8181
* The destination in RfcOpenConnection.
8282
*/
83-
const JSON_DEST = 'dest';
83+
public const JSON_DEST = 'dest';
8484

8585
/**
8686
* Get the username to use for authentication.

src/Config/IConfigTypeA.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,22 +20,22 @@ interface IConfigTypeA extends IConfigCommon
2020
/**
2121
* The host name of a specific SAP application server.
2222
*/
23-
const JSON_ASHOST = 'ashost';
23+
public const JSON_ASHOST = 'ashost';
2424

2525
/**
2626
* The SAP system number.
2727
*/
28-
const JSON_SYSNR = 'sysnr';
28+
public const JSON_SYSNR = 'sysnr';
2929

3030
/**
3131
* The gateway host on an application server.
3232
*/
33-
const JSON_GWHOST = 'gwhost';
33+
public const JSON_GWHOST = 'gwhost';
3434

3535
/**
3636
* The gateway server on an application server.
3737
*/
38-
const JSON_GWSERV = 'gwserv';
38+
public const JSON_GWSERV = 'gwserv';
3939

4040
/**
4141
* Get the hostname of a specific SAP application server.

src/Config/IConfigTypeB.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,17 @@ interface IConfigTypeB extends IConfigCommon
2020
/**
2121
* The host name of the message server.
2222
*/
23-
const JSON_MSHOST = 'mshost';
23+
public const JSON_MSHOST = 'mshost';
2424

2525
/**
2626
* The name of SAP system, optional; default: destination
2727
*/
28-
const JSON_R3NAME = 'r3name';
28+
public const JSON_R3NAME = 'r3name';
2929

3030
/**
3131
* The group name of the application servers.
3232
*/
33-
const JSON_GROUP = 'group';
33+
public const JSON_GROUP = 'group';
3434

3535

3636
/**

src/IFunction.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,17 @@ interface IFunction extends IJsonSerializable
2828
/**
2929
* JSON configuration key for the SAP remote function name.
3030
*/
31-
const JSON_NAME = 'name';
31+
public const JSON_NAME = 'name';
3232

3333
/**
3434
* JSON configuration key for the SAP remote function API.
3535
*/
36-
const JSON_API = 'api';
36+
public const JSON_API = 'api';
3737

3838
/**
3939
* JSON configuration key for the SAP remote function call parameters.
4040
*/
41-
const JSON_PARAM = 'params';
41+
public const JSON_PARAM = 'params';
4242

4343
/**
4444
* Initialize the remote function call with at least a name.

0 commit comments

Comments
 (0)