dataAttribs = $dataAttribs; } elseif ( $tsr ) { $this->dataAttribs = (object)[ "tsr" => $tsr ]; } } /** * @inheritDoc */ public function jsonSerialize(): array { return [ 'type' => $this->getType(), 'dataAttribs' => $this->dataAttribs ]; } }