mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-12 11:16:35 +09:00
797bc2fd98
git-subtree-dir: includes/lib/action-scheduler git-subtree-split: c828347715e6c3318c8ab8b4fea2d87b31d51aac
37 lines
585 B
PHP
37 lines
585 B
PHP
<?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;
|
|
}
|
|
}
|