PluginProbe
Image Optimizer – Compress Images and Convert to WebP or AVIF / 1.7.7
Image Optimizer – Compress Images and Convert to WebP or AVIF v1.7.7
1.7.7 1.7.6 1.7.5 1.7.4 trunk 1.0.0 1.0.1 1.0.2 1.1.0 1.2.0 1.2.1 1.3.0 1.4.0 1.4.1 1.5.0 1.5.1 1.5.2 1.5.3 1.5.4 1.6.0 1.6.1 1.6.2 1.6.3 1.6.4 1.6.5 All 33 releases
image-optimization / classes / async-operation / async-operation-item.php

async-operation-item.php in Image Optimizer – Compress Images and Convert to WebP or AVIF 1.7.7, at classes/async-operation/async-operation-item.php

83 lines 1.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace ImageOptimization\Classes\Async_Operation;
4
5 use DateTime;
6
7 if ( ! defined( 'ABSPATH' ) ) {
8 exit; // Exit if accessed directly.
9 }
10
11 class Async_Operation_Item {
12 private int $id;
13 private string $hook;
14 private string $status;
15 private array $args;
16 private string $queue;
17 private DateTime $date;
18 private array $logs;
19
20 public function get_id(): int {
21 return $this->id;
22 }
23
24 public function set_id( int $id ): Async_Operation_Item {
25 $this->id = $id;
26 return $this;
27 }
28
29 public function get_hook(): string {
30 return $this->hook;
31 }
32
33 public function set_hook( string $hook ): Async_Operation_Item {
34 $this->hook = $hook;
35 return $this;
36 }
37
38 public function get_status(): string {
39 return $this->status;
40 }
41
42 public function set_status( string $status ): Async_Operation_Item {
43 $this->status = $status;
44 return $this;
45 }
46
47 public function get_args(): array {
48 return $this->args;
49 }
50
51 public function set_args( array $args ): Async_Operation_Item {
52 $this->args = $args;
53 return $this;
54 }
55
56 public function get_date(): DateTime {
57 return $this->date;
58 }
59
60 public function set_date( DateTime $date ): Async_Operation_Item {
61 $this->date = $date;
62 return $this;
63 }
64
65 public function get_queue(): string {
66 return $this->queue;
67 }
68
69 public function set_queue( string $queue ): Async_Operation_Item {
70 $this->queue = $queue;
71 return $this;
72 }
73
74 public function get_logs(): array {
75 return $this->logs;
76 }
77
78 public function set_logs( array $logs ): Async_Operation_Item {
79 $this->logs = $logs;
80 return $this;
81 }
82 }
83