. */ namespace SP\DataModel\Dto; /** * Class AccountCacheDto * * @package SP\DataModel\Dto */ class AccountCache { /** * @var int */ private $time; /** * @var int */ private $accountId; /** * @var array */ private $users; /** * @var array */ private $userGroups; /** * AccountCacheDto constructor. * * @param int $accountId * @param array $users * @param array $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 array */ public function getUsers() { return $this->users; } /** * @return array */ public function getUserGroups() { return $this->userGroups; } /** * @return int */ public function getTime() { return $this->time; } }