id = $id; $this->type = $type; } /** * @return string * @phpstan-pure */ public function getId(): string { return $this->id; } /** * @return string * @phpstan-pure */ public function getType(): string { return $this->type; } /** * @return array */ public function jsonSerialize(): array { return [ 'type' => $this->type, 'id' => $this->id ]; } /** * @return array */ public function __debugInfo(): array { return $this->jsonSerialize(); } }