<?php

namespace App\Support;

use App\Models\Business;

final class CurrentBusiness
{
    private ?Business $business = null;

    public function set(?Business $business): void
    {
        $this->business = $business;
    }

    public function get(): ?Business
    {
        return $this->business;
    }

    public function id(): ?string
    {
        return $this->business?->getKey();
    }
}
