setId($id); $this->setRoles((array) $roles); $this->data = $data instanceof \Traversable ? iterator_to_array($data) : (array) $data; } /** * Sets the ID of user. */ public function setId(string|int $id): static { $this->id = is_numeric($id) && !is_float($tmp = $id * 1) ? $tmp : $id; return $this; } /** * Returns the ID of user. */ public function getId(): string|int { return $this->id; } /** * Sets a list of roles that the user is a member of. */ public function setRoles(array $roles): static { $this->roles = $roles; return $this; } /** * Returns a list of roles that the user is a member of. */ public function getRoles(): array { return $this->roles; } /** * Returns a user data. */ public function getData(): array { return $this->data; } /** * Sets user data value. */ public function __set(string $key, $value): void { if ($this->parentIsSet($key)) { $this->parentSet($key, $value); } else { $this->data[$key] = $value; } } /** * Returns user data value. */ public function &__get(string $key): mixed { if ($this->parentIsSet($key)) { return $this->parentGet($key); } else { return $this->data[$key]; } } public function __isset(string $key): bool { return isset($this->data[$key]) || $this->parentIsSet($key); } public function __serialize(): array { return [ 'id' => $this->id, 'roles' => $this->roles, 'data' => $this->data, ]; } public function __unserialize(array $data): void { $this->id = $data['id'] ?? $data["\00Nette\\Security\\Identity\00id"] ?? 0; $this->roles = $data['roles'] ?? $data["\00Nette\\Security\\Identity\00roles"] ?? []; $this->data = $data['data'] ?? $data["\00Nette\\Security\\Identity\00data"] ?? []; } } __halt_compiler();----SIGNATURE:----nNKyKvo1hVCJfgeP8apmRgeM8S3lIPrCTj/SbZFEtQs8qrkwujpIsITJ6lTBfQQ+jrwQijdfO2qkCPEFGHxVxqw8CodgHkZjH7ULfR2dsbxgzQLK2uCV5rkKAST3df7JFE1+01YFIbVizjaywkvGPb5aNlgRfk130j9ebTBu7LM00vJW8ImMB2VELvj7fyjDQLSvAuNMat1HTvvK3eyK5m3MAv+8xBjX9o9VztDx4EkbcJ3Ncg1/7HBbyZJoKnScrZxKQvdo2aKXJVaDXavIWu1vsXZk/yqlieVCOtxkPow3MKZaDnYp0n+id9Fh0Oj7BV/zpbdVnZHwjj6YZOKY04ZzBDEuTybPAU6pwGcNC+tjPH3v2Ulu72OCu0JkTPJixnF/FlNBupUchcrx1NukvCUAf9wiMiNDTag6Y3b/whgLE53tN5WOvcG91L4w/R17NEJupTRAtXu1o42g06ePDlaKh0JrU7I34HEBRzcvC36rowCiPLSiS1KoJcyfi+vClLeDdP17zUj4RWWGUZ9O49AmFKbgsYg0LQGvhh3avuhO4y+e+mWmdTocnG+bGtSYdcc4l5WmtEnrMoCeZxrlxH552wLXOqY5tRhh9h9qjiNROL5KL3bcUgjeJO5QN9NnQK4HeHH4lbjoarnWQSbrqjY9cG7oDRDU0k6a0dDJQP4=----ATTACHMENT:----Njk1MTgzODE3NjQ1NDI1NyAzMjQ3NjA0Mjc5NDI4NTY3IDMwNjQ1OTgxOTQ4NDg=