Merge pull request #18002 from woocommerce/tweak/use-protected-methods

Use protected instead of private methods to allow easy override
This commit is contained in:
Mike Jolley 2017-12-04 15:38:30 +00:00 committed by GitHub
commit 02bfeddf4b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 5 deletions

View File

@ -18,19 +18,19 @@ if ( ! defined( 'ABSPATH' ) ) {
class WC_Session_Handler extends WC_Session {
/** @var string cookie name */
private $_cookie;
protected $_cookie;
/** @var string session due to expire timestamp */
private $_session_expiring;
protected $_session_expiring;
/** @var string session expiration timestamp */
private $_session_expiration;
protected $_session_expiration;
/** $var bool Bool based on whether a cookie exists **/
private $_has_cookie = false;
protected $_has_cookie = false;
/** @var string Custom session table name */
private $_table;
protected $_table;
/**
* Constructor for the session class.