| @@ 16-30 (lines=15) @@ | ||
| 13 | * |
|
| 14 | * @throws DomainException |
|
| 15 | */ |
|
| 16 | public function __construct() |
|
| 17 | { |
|
| 18 | if (PHP_VERSION_ID < 50600) { |
|
| 19 | throw new DomainException( |
|
| 20 | sprintf( |
|
| 21 | esc_html__( |
|
| 22 | 'The %1$s is only usable on php versions greater than 5.6. You\'ll want to use %2$s instead.', |
|
| 23 | 'event_espresso' |
|
| 24 | ), |
|
| 25 | __CLASS__, |
|
| 26 | 'EventEspresso\core\services\helpers\datetime\PhpCompatLessFiveSixHelper' |
|
| 27 | ) |
|
| 28 | ); |
|
| 29 | } |
|
| 30 | } |
|
| 31 | ||
| 32 | /** |
|
| 33 | * Returns a timezone string for the provided gmt_offset. |
|
| @@ 26-40 (lines=15) @@ | ||
| 23 | * |
|
| 24 | * @throws DomainException |
|
| 25 | */ |
|
| 26 | public function __construct() |
|
| 27 | { |
|
| 28 | if (PHP_VERSION_ID >= 50600) { |
|
| 29 | throw new DomainException( |
|
| 30 | sprintf( |
|
| 31 | esc_html__( |
|
| 32 | 'The %1$s is only usable on php versions less than 5.6. You\'ll want to use %2$s instead.', |
|
| 33 | 'event_espresso' |
|
| 34 | ), |
|
| 35 | __CLASS__, |
|
| 36 | 'EventEspresso\core\services\helpers\datetime\PhpCompatGreaterFiveSixHelper' |
|
| 37 | ) |
|
| 38 | ); |
|
| 39 | } |
|
| 40 | } |
|
| 41 | ||
| 42 | /** |
|
| 43 | * Returns a timezone string for the provided gmt_offset. |
|