Skip to content

Commit

Permalink
docblocks
Browse files Browse the repository at this point in the history
- update class block
- add @SInCE on methods
  • Loading branch information
aaemnnosttv committed Oct 31, 2019
1 parent fb86da6 commit 22c4047
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion includes/Core/Util/Migration_1_0_0.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@
/**
* Class Migration_1_0_0
*
* @package Google\Site_Kit\Core\Util
* @since 1.0.0
* @access private
* @ignore
*/
class Migration_1_0_0 {

Expand All @@ -47,6 +49,8 @@ class Migration_1_0_0 {
/**
* Constructor.
*
* @since 1.0.0
*
* @param Context $context Plugin context instance.
*/
public function __construct( Context $context ) {
Expand All @@ -56,13 +60,17 @@ public function __construct( Context $context ) {

/**
* Registers hooks.
*
* @since 1.0.0
*/
public function register() {
add_action( 'admin_init', array( $this, 'migrate' ) );
}

/**
* Migrates the DB.
*
* @since 1.0.0
*/
public function migrate() {
$db_version = $this->options->get( 'googlesitekit_db_version' );
Expand All @@ -76,6 +84,8 @@ public function migrate() {

/**
* Migrates old credentials and disconnects users.
*
* @since 1.0.0
*/
private function migrate_install() {
$credentials = ( new Encrypted_Options( $this->options ) )->get( Credentials::OPTION );
Expand All @@ -93,6 +103,8 @@ private function migrate_install() {

/**
* Disconnects authenticated users.
*
* @since 1.0.0
*/
private function disconnect_users() {
global $wpdb;
Expand Down

0 comments on commit 22c4047

Please sign in to comment.