woocommerce/src/Package.php

49 lines
756 B
PHP
Raw Normal View History

2019-06-21 18:58:20 +00:00
<?php
/**
* Returns information about the package and handles init.
*
* @package Automattic/WooCommerce/RestApi
*/
namespace Automattic\WooCommerce\RestApi;
defined( 'ABSPATH' ) || exit;
/**
* Main package class.
*/
class Package {
/**
* Version.
*
* @var string
*/
2020-01-15 23:29:39 +00:00
const VERSION = '1.0.6';
2019-06-21 18:58:20 +00:00
/**
* Init the package - load the REST API Server class.
*/
public static function init() {
\Automattic\WooCommerce\RestApi\Server::instance()->init();
}
/**
* Return the version of the package.
*
* @return string
*/
public static function get_version() {
return self::VERSION;
}
/**
* Return the path to the package.
*
* @return string
*/
public static function get_path() {
return dirname( __DIR__ );
}
}