public function __construct(array $fields, array $metadata = []) { $this->fields = $fields; $this->metadata = $metadata; }