| 1 |
<?php |
| 2 |
/** |
| 3 |
* Snippet class |
| 4 |
* |
| 5 |
* @author Webcraftic <wordpress.webraftic@gmail.com> |
| 6 |
* @copyright (c) 05.03.2019, Webcraftic |
| 7 |
* @version 1.0 |
| 8 |
*/ |
| 9 |
|
| 10 |
namespace WINP\JsonMapper; |
| 11 |
|
| 12 |
// Exit if accessed directly |
| 13 |
if ( ! defined( 'ABSPATH' ) ) { |
| 14 |
exit; |
| 15 |
} |
| 16 |
|
| 17 |
class Snippet { |
| 18 |
|
| 19 |
/** |
| 20 |
* @var integer Snippet id |
| 21 |
*/ |
| 22 |
public $id; |
| 23 |
|
| 24 |
/** |
| 25 |
* @var string Snippet title |
| 26 |
*/ |
| 27 |
public $title; |
| 28 |
|
| 29 |
/** |
| 30 |
* @var string Snippet description |
| 31 |
*/ |
| 32 |
public $description; |
| 33 |
|
| 34 |
/** |
| 35 |
* @var string Snippet content |
| 36 |
*/ |
| 37 |
public $content; |
| 38 |
|
| 39 |
/** |
| 40 |
* @var string|null Snippets Library: video link |
| 41 |
*/ |
| 42 |
public $video_link; |
| 43 |
|
| 44 |
/** |
| 45 |
* @var string|null Snippet scope |
| 46 |
*/ |
| 47 |
public $execute_everywhere; |
| 48 |
|
| 49 |
/** |
| 50 |
* @var boolean Snippet status |
| 51 |
*/ |
| 52 |
public $status; |
| 53 |
|
| 54 |
/** |
| 55 |
* @var integer Type id |
| 56 |
*/ |
| 57 |
public $type_id; |
| 58 |
|
| 59 |
/** |
| 60 |
* @var boolean|null Snippet premium marker |
| 61 |
*/ |
| 62 |
public $is_premium; |
| 63 |
|
| 64 |
/** |
| 65 |
* @var integer Snippet updated time (timestamp) |
| 66 |
*/ |
| 67 |
public $updated_at; |
| 68 |
|
| 69 |
/** |
| 70 |
* @var integer Snippet created time (timestamp) |
| 71 |
*/ |
| 72 |
public $created_at; |
| 73 |
|
| 74 |
/** |
| 75 |
* @var Type |
| 76 |
*/ |
| 77 |
public $type; |
| 78 |
} |
| 79 |
|