Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Public Member Functions
ModuleContext Class Reference
Inheritance diagram for ModuleContext:
ModuleContextInterface

Public Member Functions

 __construct ($version)
 
 getVersion ()
 

Detailed Description

Context of a module being installed/updated: version, user data, etc.

@api

Definition at line 15 of file ModuleContext.php.

Constructor & Destructor Documentation

◆ __construct()

__construct (   $version)

Init

Parameters
string$versionCurrent version of a module

Definition at line 29 of file ModuleContext.php.

30  {
31  $this->version = $version;
32  }

Member Function Documentation

◆ getVersion()

getVersion ( )

{Gets current version of the module

Returns
string
}

Implements ModuleContextInterface.

Definition at line 37 of file ModuleContext.php.

38  {
39  return $this->version;
40  }

The documentation for this class was generated from the following file: