class-helper-window.php in WP-Stateless – Google Cloud Storage trunk, at lib/classes/sync/class-helper-window.php
| 1 | <?php |
| 2 | |
| 3 | namespace wpCloud\StatelessMedia\Sync; |
| 4 | |
| 5 | /** |
| 6 | * Helper Window for a single process UI |
| 7 | */ |
| 8 | class HelperWindow { |
| 9 | |
| 10 | /** |
| 11 | * Title |
| 12 | */ |
| 13 | public $title; |
| 14 | |
| 15 | /** |
| 16 | * Content |
| 17 | */ |
| 18 | public $content; |
| 19 | |
| 20 | /** |
| 21 | * Construct |
| 22 | */ |
| 23 | public function __construct($title, $content) { |
| 24 | $this->title = $title; |
| 25 | $this->content = $content; |
| 26 | } |
| 27 | |
| 28 | /** |
| 29 | * To JSON |
| 30 | */ |
| 31 | #[\ReturnTypeWillChange] |
| 32 | public function jsonSerialize() { |
| 33 | return get_object_vars($this); |
| 34 | } |
| 35 | } |
| 36 |