Plugin_Factory
Factory to return the shared plugin instance.
Tags
Table of Contents
Properties
$plugin
private
static mixed
$plugin
= null
Methods
create()
Create/return the shared plugin instance.
public
static create(string $file, string $version) : Plugin
Parameters
- $file : string
-
The main plugin FILE
- $version : string
-
The current plugin version
Return values
Plugin —The plugin instance