PluginProbe
Booktics – Appointment Booking Calendar for Service Businesses / 1.0.14
Booktics – Appointment Booking Calendar for Service Businesses v1.0.14
1.0.29 1.0.28 1.0.27 1.0.26 1.0.25 1.0.24 1.0.23 1.0.22 1.0.21 1.0.20 1.0.19 trunk 1.0.0 1.0.1 1.0.10 1.0.11 1.0.12 1.0.13 1.0.14 1.0.15 1.0.16 1.0.17 1.0.18 1.0.2 1.0.3 All 31 releases
booktics / core / appointment / schedule / null-strategy.php

null-strategy.php in Booktics – Appointment Booking Calendar for Service Businesses 1.0.14, at core/appointment/schedule/null-strategy.php

32 lines 1.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 namespace Booktics\Appointment\Schedule;
3
4 /**
5 * Null implementation of Time_Slot_Strategy that returns empty slots.
6 * Used as a fallback or placeholder strategy.
7 *
8 * @package Booktics\Appointment\Schedule
9 */
10 class Null_Strategy implements Time_Slot_Strategy {
11 /**
12 * Generates an empty array of time slots, implementing the null object pattern.
13 *
14 * @param Schedule_Entry|null $service_entry The service schedule entry
15 * @param Schedule_Entry|null $team_entry The team member schedule entry
16 * @param Schedule_Entry|null $default_entry The default schedule entry
17 * @param Time_Slot_Manager $manager The time slot manager instance
18 * @param \DateTime $date The date to generate slots for
19 *
20 * @return array Empty array of time slots
21 */
22 public function generate_slots(
23 array $service_entries,
24 array $team_entries,
25 array $default_entries,
26 Time_Slot_Manager $manager,
27 \DateTime $date
28 ): array {
29 return array();
30 }
31 }
32