Engine
4 weeks ago
Integrations
4 weeks ago
Validator
1 year ago
class-bootstrap.php
2 months ago
class-container.php
7 months ago
class-email-css-inliner.php
7 months ago
class-email-editor-container.php
3 months ago
class-package.php
1 year ago
exceptions.php
1 year ago
class-package.php
52 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Email Editor Container class file. |
| 4 | * |
| 5 | * @package Automattic\WooCommerce\EmailEditor |
| 6 | */ |
| 7 | |
| 8 | declare( strict_types = 1 ); |
| 9 | namespace Automattic\WooCommerce\EmailEditor; |
| 10 | |
| 11 | defined( 'ABSPATH' ) || exit; |
| 12 | |
| 13 | /** |
| 14 | * Main package class. |
| 15 | */ |
| 16 | class Package { |
| 17 | |
| 18 | /** |
| 19 | * Version. |
| 20 | * |
| 21 | * @var string |
| 22 | */ |
| 23 | const VERSION = '0.1.0'; |
| 24 | |
| 25 | /** |
| 26 | * Init the package. |
| 27 | * |
| 28 | * @return void |
| 29 | */ |
| 30 | public static function init() { |
| 31 | Email_Editor_Container::init(); |
| 32 | } |
| 33 | |
| 34 | /** |
| 35 | * Return the version of the package. |
| 36 | * |
| 37 | * @return string |
| 38 | */ |
| 39 | public static function get_version() { |
| 40 | return self::VERSION; |
| 41 | } |
| 42 | |
| 43 | /** |
| 44 | * Return the path to the package. |
| 45 | * |
| 46 | * @return string |
| 47 | */ |
| 48 | public static function get_path() { |
| 49 | return dirname( __DIR__ ); |
| 50 | } |
| 51 | } |
| 52 |