image-optimization
/
vendor
/
woocommerce
/
action-scheduler
/
classes
/
ActionScheduler_ActionClaim.php
ActionScheduler_ActionClaim.php in Image Optimizer – Compress Images and Convert to WebP or AVIF 1.5.4, at vendor/woocommerce/action-scheduler/classes/ActionScheduler_ActionClaim.php
| 1 | <?php |
| 2 | |
| 3 | /** |
| 4 | * Class ActionScheduler_ActionClaim |
| 5 | */ |
| 6 | class ActionScheduler_ActionClaim { |
| 7 | /** @var string */ |
| 8 | private $id = ''; |
| 9 | /** @var int[] */ |
| 10 | private $action_ids = array(); |
| 11 | |
| 12 | /** |
| 13 | * Construct. |
| 14 | * |
| 15 | * @param string $id Claim ID. |
| 16 | * @param int[] $action_ids Action IDs. |
| 17 | */ |
| 18 | public function __construct( $id, array $action_ids ) { |
| 19 | $this->id = $id; |
| 20 | $this->action_ids = $action_ids; |
| 21 | } |
| 22 | |
| 23 | /** |
| 24 | * Get claim ID. |
| 25 | */ |
| 26 | public function get_id() { |
| 27 | return $this->id; |
| 28 | } |
| 29 | |
| 30 | /** |
| 31 | * Get IDs of claimed actions. |
| 32 | */ |
| 33 | public function get_actions() { |
| 34 | return $this->action_ids; |
| 35 | } |
| 36 | } |
| 37 |