Skip to content

Commit

Permalink
Update PluginInstallTask.php
Browse files Browse the repository at this point in the history
  • Loading branch information
officiallygod committed Sep 24, 2024
1 parent b418c3a commit b1f2d64
Showing 1 changed file with 23 additions and 5 deletions.
28 changes: 23 additions & 5 deletions includes/Tasks/PluginInstallTask.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,19 +36,37 @@ class PluginInstallTask extends Task {
*/
private $retries;

/**
* Boolean if the given plugin is a entitlement.
*
* @var int
*/
private $is_entitlement;

/**
* Meta information about a plugin, useful for entitlements.
*
* @var int
*/
private $meta;

/**
* PluginInstallTask constructor
*
* @param string $slug The slug for the Plugin. Ref: includes/Data/Plugins.php for the slugs.
* @param boolean $activate A value of true activates the plugin.
* @param int $priority Priority of the task, higher the number higher the priority.
* @param int $retries The number of times the Task has been retried
* @param boolean $is_entitlement If the given plugin is a entitlement
* @param object $meta Meta information about a plugin
*/
public function __construct( $slug, $activate, $priority = 0, $retries = 0 ) {
$this->slug = $slug;
$this->activate = $activate;
$this->priority = $priority;
$this->retries = $retries;
public function __construct( $slug, $activate, $priority = 0, $retries = 0, $is_entitlement = false, $meta = array() ) {
$this->slug = $slug;
$this->activate = $activate;
$this->priority = $priority;
$this->retries = $retries;
$this->is_entitlement = $is_entitlement;
$this->meta = $meta;
}

/**
Expand Down

0 comments on commit b1f2d64

Please sign in to comment.