Change the scope of the "get_available_periods" method to public so that other places in code can call it

This commit is contained in:
Alex Tselegidis 2024-06-03 20:32:45 +02:00
parent b800cf239d
commit 6e395834ab
1 changed files with 1 additions and 1 deletions

View File

@ -330,7 +330,7 @@ class Availability
* *
* @throws Exception * @throws Exception
*/ */
protected function get_available_periods(string $date, array $provider, int $exclude_appointment_id = null): array public function get_available_periods(string $date, array $provider, int $exclude_appointment_id = null): array
{ {
// Get the service, provider's working plan and provider appointments. // Get the service, provider's working plan and provider appointments.
$working_plan = json_decode($provider['settings']['working_plan'], true); $working_plan = json_decode($provider['settings']['working_plan'], true);