$this->id, 'email' => $this->email, 'surname' => $this->lastname, 'firstname' => $this->firstname, 'password' => $this->password, 'activated' => $this->status, 'role' => ($this->role === 1) ? "TOTAL" : "USER", 'authorizedFolders' => $this->authorizedFolders, 'created_at' => $this->created_at, 'updated_at' => $this->updated_at, ]; } }