<?php

namespace NoahVet\Reef\Business\Model;

abstract class AbstractEntityWithTeam
{
    /**
     * @param TeamMember[] $teamMembers
     */
    public function __construct(
        protected string $uuid,
        protected string $code,
        protected array $teamMembers,
        protected ?string $legalStructureUuid,
    ) {
    }

    public function getUuid(): string
    {
        return $this->uuid;
    }

    public function getCode(): string
    {
        return $this->code;
    }

    /**
     * @return TeamMember[]
     */
    public function getTeamMembers(): array
    {
        return $this->teamMembers;
    }

    public function getLegalStructureUuid(): ?string
    {
        return $this->legalStructureUuid;
    }
}
