. */ namespace SP\Domain\Account\Dtos; /** * Class AccountCacheDto */ readonly class AccountCacheDto { private int $time; /** * AccountCacheDto constructor. * * @param int $accountId * @param array $users * @param array $userGroups */ public function __construct( private int $accountId, private array $users, private array $userGroups ) { $this->time = time(); } public function getAccountId(): int { return $this->accountId; } public function getUsers(): array { return $this->users; } public function getUserGroups(): array { return $this->userGroups; } public function getTime(): int { return $this->time; } }