| 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 |
|