PluginProbe
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses / 4.4.8
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses v4.4.8
4.4.8 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 All 139 releases
← All changes | inc/Helpers/Response.php +44 -44 4.3.9.14.4.8 View file →
@@ -1,44 +1,44 @@
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 -}
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 +}