<?php

namespace NoahVet\Reef\Business\Model;

class EstablishmentWithLegalStructure extends EstablishmentWithTeam
{
    /**
     * @param TeamMember[] $teamMembers
     */
    public function __construct(
        string $uuid,
        string $code,
        array $teamMembers,
        private readonly string $legalStructureId,
    ) {
        parent::__construct($uuid, $code, $teamMembers);
    }

    public function getLegalStructureId(): string
    {
        return $this->legalStructureId;
    }
}
