. */ namespace SP\DataModel\Dto; use SP\DataModel\ItemData; /** * Class AccountCacheDto * * @package SP\DataModel\Dto */ class AccountCache { /** * @var int */ private $time; /** * @var int */ private $accountId; /** * @var ItemData[] */ private $users; /** * @var ItemData[] */ private $userGroups; /** * AccountCacheDto constructor. * * @param int $accountId * @param ItemData[] $users * @param ItemData[] $userGroups */ public function __construct($accountId, array $users, array $userGroups) { $this->accountId = $accountId; $this->users = $users; $this->userGroups = $userGroups; $this->time = time(); } /** * @return int */ public function getAccountId() { return $this->accountId; } /** * @return ItemData[] */ public function getUsers() { return $this->users; } /** * @return ItemData[] */ public function getUserGroups() { return $this->userGroups; } /** * @return int */ public function getTime() { return $this->time; } }