<?php

namespace Modules\WhatsApp\Observers;

use Modules\WhatsApp\Entities\Services\WaNotifier;

/**
 * Notifies the pet owner when a lab test session (results) lands. Registered
 * only when the LabCore module is installed. No hard type-hint so this module
 * stays dependency-free if LabCore is absent.
 */
class LabTestSessionObserver
{
    public function created($session): void
    {
        (new WaNotifier())->labResultsReady($session);
    }
}
