Merge commit '797bc2fd9811f86077e1aa3edd68593ab9dd5956' as 'includes/lib/action-scheduler'

This commit is contained in:
Yurii Nalivaiko
2024-09-03 12:28:53 +02:00
160 changed files with 29030 additions and 0 deletions
@@ -0,0 +1,36 @@
<?php
/**
* Class ActionScheduler_ActionClaim
*/
class ActionScheduler_ActionClaim {
/** @var string */
private $id = '';
/** @var int[] */
private $action_ids = array();
/**
* Construct.
*
* @param string $id Claim ID.
* @param int[] $action_ids Action IDs.
*/
public function __construct( $id, array $action_ids ) {
$this->id = $id;
$this->action_ids = $action_ids;
}
/**
* Get claim ID.
*/
public function get_id() {
return $this->id;
}
/**
* Get IDs of claimed actions.
*/
public function get_actions() {
return $this->action_ids;
}
}