id = $id; $this->createdAt = $createdAt; $this->name = $name; $this->label = $label; $this->model = $model; } public function getId(): ?string { return $this->id; } public function getCreatedAt(): ?string { return $this->createdAt; } public function getName(): ?string { return $this->name; } public function getLabel(): ?string { return $this->label; } public function getModel(): ?string { return $this->model; } public static function fromArray(array $array = []): Token { $id = $array['id'] ?? null; $createdAt = $array['createdAt'] ?? null; $name = $array['name'] ?? null; $label = $array['label'] ?? null; $model = $array['model'] ?? null; return new Token($id, $createdAt, $name, $label, $model); } }