PluginProbe
WowOptin: Next-Gen Popup Maker – Create Stunning Popups and Optins for Lead Generation / trunk
WowOptin: Next-Gen Popup Maker – Create Stunning Popups and Optins for Lead Generation vtrunk
1.4.48 1.4.47 1.4.46 1.4.45 1.4.44 1.4.43 1.4.42 1.4.41 1.4.40 1.4.39 1.4.38 1.4.37 1.4.36 1.1.2 1.2.0 1.2.1 1.2.2 1.3.0 1.3.1 1.4.0 1.4.1 1.4.10 1.4.11 1.4.12 1.4.13 All 64 releases
optin / includes / dto / class-model-input.php

class-model-input.php in WowOptin: Next-Gen Popup Maker – Create Stunning Popups and Optins for Lead Generation trunk, at includes/dto/class-model-input.php

61 lines 912 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php // phpcs:ignore
2
3 namespace OPTN\Includes\Dto;
4
5 /**
6 * Model Input DTO
7 */
8 class ModelInput {
9
10 /**
11 * User prompt
12 *
13 * @var string
14 */
15 public $user_prompt;
16
17 /**
18 * Developer Prompt
19 *
20 * @var string
21 */
22 public $instruction;
23
24 /**
25 * Images
26 *
27 * @var array
28 */
29 public $images;
30
31 /**
32 * Task
33 *
34 * @var string
35 */
36 public $task;
37
38 /**
39 * Constructor
40 *
41 * @param string $user_prompt user prompt.
42 * @param array $args args.
43 */
44 public function __construct( $user_prompt, $args ) {
45 $this->user_prompt = $user_prompt;
46
47 $parsed_args = wp_parse_args(
48 $args,
49 array(
50 'instruction' => '',
51 'images' => array(),
52 'task' => 'generate',
53 )
54 );
55
56 $this->instruction = $parsed_args['instruction'];
57 $this->task = $parsed_args['task'];
58 $this->images = $parsed_args['images'];
59 }
60 }
61