Skip to content

Commit 4dd6ac2

Browse files
committed
PSR12: add public visibility to constants #6
1 parent e0be34e commit 4dd6ac2

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/SapDateInterval.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class SapDateInterval extends DateInterval
2828
/**
2929
* @var string SAP time format for DateInterval
3030
*/
31-
const SAP_TIME = '%H%I%S';
31+
public const SAP_TIME = '%H%I%S';
3232

3333
/**
3434
* Sets up a DateInterval from the relative parts of the string

src/SapDateTime.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,22 +27,22 @@ class SapDateTime extends \DateTime
2727
/**
2828
* @const string SAP week format.
2929
*/
30-
const SAP_WEEK = 'oW';
30+
public const SAP_WEEK = 'oW';
3131

3232
/**
3333
* @const string SAP date format.
3434
*/
35-
const SAP_DATE = 'Ymd';
35+
public const SAP_DATE = 'Ymd';
3636

3737
/**
3838
* @const string SAP time format
3939
*/
40-
const SAP_TIME = 'His';
40+
public const SAP_TIME = 'His';
4141

4242
/**
4343
* @const string SAP timestamp format.
4444
*/
45-
const SAP_TIMESTAMP = 'YmdHis';
45+
public const SAP_TIMESTAMP = 'YmdHis';
4646

4747
/**
4848
* This regular expression covers only years from 1900 to 9999.

0 commit comments

Comments
 (0)