ModuleDetails
in package
Class ModuleDetails
Table of Contents
- $enabled : bool|null
- $installed : bool
- $name : string
- __construct() : mixed
- ModuleDetails constructor.
- create() : ModuleDetails
- Creates and returns a new ModuleDetails instance.
- enabled() : bool|null
- Returns the enabled status of the mdoule.
- installed() : bool
- Returns the installed status of the module.
- name() : string
- Returns the name of the module.
Properties
$enabled
private
bool|null
$enabled
$installed
private
bool
$installed
$name
private
string
$name
Methods
__construct()
ModuleDetails constructor.
public
__construct(string $name, bool $installed, bool|null $enabled) : mixed
Parameters
- $name : string
- $installed : bool
- $enabled : bool|null
Return values
mixed —create()
Creates and returns a new ModuleDetails instance.
public
static create(string $name, bool $installed, bool|null $enabled) : ModuleDetails
Parameters
- $name : string
- $installed : bool
- $enabled : bool|null
Return values
ModuleDetails —enabled()
Returns the enabled status of the mdoule.
public
enabled() : bool|null
Return values
bool|null —Null will be returned if its a module center module. For all other modules true will be returned, if the module is enabled and false will be returned, if the module is not enabled.
installed()
Returns the installed status of the module.
public
installed() : bool
Return values
bool —Returns true, if the module is installed, otherwise false will be returned.
name()
Returns the name of the module.
public
name() : string