PluginProbe
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses / 4.4.7
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses v4.4.7
4.4.7 4.4.6 4.4.5 4.4.4 4.4.3 4.4.2 4.4.1 4.4.0 4.3.9.1 4.3.9 4.3.8 4.3.7 4.1.6.9 4.1.6.9.1 4.1.6.9.2 4.1.6.9.3 4.1.6.9.4 4.1.7 4.1.7.1 4.1.7.2 4.1.7.3 4.1.7.3.1 4.1.7.3.2 4.2.0 4.2.1 All 138 releases
learnpress / inc / Helpers / Response.php

Response.php in LearnPress – WordPress LMS Plugin for Create and Sell Online Courses 4.4.7, at inc/Helpers/Response.php

45 lines 587 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace LearnPress\Helpers;
4
5 use stdClass;
6
7 defined( 'ABSPATH' ) || exit;
8
9 /**
10 * Class Response
11 *
12 * @package LearnPress/Helpers
13 * @version 1.0.0
14 * @since 4.3.7
15 */
16 class Response {
17 const STATUS_SUCCESS = 'success';
18 const STATUS_ERROR = 'error';
19 /**
20 * Status.
21 *
22 * @var string.
23 */
24 public $status = self::STATUS_ERROR;
25 /**
26 * Message.
27 *
28 * @var string .
29 */
30 public $message = '';
31 /**
32 * Extra data
33 *
34 * @var object
35 */
36 public $data;
37
38 /**
39 * LP_REST_Response constructor.
40 */
41 public function __construct() {
42 $this->data = new stdClass();
43 }
44 }
45