raw.php
36 lines
| 1 | <?php |
| 2 | /** |
| 3 | * @package VikAppointments |
| 4 | * @subpackage core |
| 5 | * @author E4J s.r.l. |
| 6 | * @copyright Copyright (C) 2021 E4J s.r.l. All Rights Reserved. |
| 7 | * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL |
| 8 | * @link https://vikwp.com |
| 9 | */ |
| 10 | |
| 11 | // No direct access |
| 12 | defined('ABSPATH') or die('No script kiddies please!'); |
| 13 | |
| 14 | VAPLoader::import('libraries.worktime.import.layout'); |
| 15 | |
| 16 | /** |
| 17 | * Null object pattern, used to leave the times array as is. |
| 18 | * |
| 19 | * @since 1.7.1 |
| 20 | */ |
| 21 | class VAPWorktimeImportLayoutRaw implements VAPWorktimeImportLayout |
| 22 | { |
| 23 | /** |
| 24 | * Refactor the times array into a specific layout. |
| 25 | * |
| 26 | * @param array $times An array of working times. |
| 27 | * |
| 28 | * @return mixed The resulting layout. |
| 29 | */ |
| 30 | public function build($times) |
| 31 | { |
| 32 | // do not manipulate |
| 33 | return $times; |
| 34 | } |
| 35 | } |
| 36 |