| 1 |
<?php |
| 2 |
|
| 3 |
namespace YayMail\Constants; |
| 4 |
|
| 5 |
use YayMail\Utils\SingletonTrait; |
| 6 |
|
| 7 |
/** |
| 8 |
* Email Types constants class |
| 9 |
*/ |
| 10 |
class EmailTypes { |
| 11 |
use SingletonTrait; |
| 12 |
|
| 13 |
protected function __construct() { |
| 14 |
$this->define_constants(); |
| 15 |
} |
| 16 |
|
| 17 |
protected function define_constants() { |
| 18 |
if ( ! defined( 'YAYMAIL_NON_ORDER_EMAILS' ) ) { |
| 19 |
define( 'YAYMAIL_NON_ORDER_EMAILS', 'NON_ORDER_EMAILS' ); |
| 20 |
} |
| 21 |
|
| 22 |
if ( ! defined( 'YAYMAIL_WITH_ORDER_EMAILS' ) ) { |
| 23 |
define( 'YAYMAIL_WITH_ORDER_EMAILS', 'WITH_ORDER_EMAILS' ); |
| 24 |
} |
| 25 |
|
| 26 |
if ( ! defined( 'YAYMAIL_ALL_EMAILS' ) ) { |
| 27 |
define( 'YAYMAIL_ALL_EMAILS', 'ALL_EMAILS' ); |
| 28 |
} |
| 29 |
|
| 30 |
if ( ! defined( 'YAYMAIL_GLOBAL_HEADER_FOOTER_ID' ) ) { |
| 31 |
define( 'YAYMAIL_GLOBAL_HEADER_FOOTER_ID', 'GLOBAL_HEADER_FOOTER_ID' ); |
| 32 |
} |
| 33 |
} |
| 34 |
} |
| 35 |
|