| 1 |
<?php |
| 2 |
/** |
| 3 |
* Service Model |
| 4 |
* |
| 5 |
* @package Booktics/Models |
| 6 |
*/ |
| 7 |
|
| 8 |
namespace Booktics\Models; |
| 9 |
|
| 10 |
use Booktics\Abstracts\Post_Model; |
| 11 |
|
| 12 |
/** |
| 13 |
* Service_Model class |
| 14 |
*/ |
| 15 |
class Service_Model extends Post_Model { |
| 16 |
/** |
| 17 |
* Store service data |
| 18 |
* |
| 19 |
* @var array<string, mixed> |
| 20 |
*/ |
| 21 |
protected $fillable = [ |
| 22 |
'id' => '', |
| 23 |
'title' => '', |
| 24 |
'description' => '', |
| 25 |
'content' => '', |
| 26 |
'link' => '', |
| 27 |
'image' => '', |
| 28 |
'image_id' => '', |
| 29 |
'categories' => [], |
| 30 |
'status' => '', |
| 31 |
'enable_custom_holiday' => false, |
| 32 |
'enable_custom_schedule' => false, |
| 33 |
'enable_additional_service_duration' => false, |
| 34 |
'interval_time' => '', |
| 35 |
'before_buffer_time' => '', |
| 36 |
'after_buffer_time' => '', |
| 37 |
'team_member' => [], |
| 38 |
'show_end_time' => '', |
| 39 |
'additional_durations' => [], |
| 40 |
'schedule' => [], |
| 41 |
'custom' => [], |
| 42 |
'holiday' => [], |
| 43 |
]; |
| 44 |
|
| 45 |
/** |
| 46 |
* Get post type |
| 47 |
* |
| 48 |
* @return string Post type name |
| 49 |
*/ |
| 50 |
public function get_post_type() { |
| 51 |
return 'booktics-service'; |
| 52 |
} |
| 53 |
} |
| 54 |
|