addType('type', 'string'); $this->addType('shareWith', 'string'); $this->addType('textBlockId', 'integer'); } #[ReturnTypeWillChange] public function jsonSerialize() { return [ 'id' => $this->getId(), 'type' => $this->getType(), 'shareWith' => $this->getShareWith(), 'textBlockId' => $this->getTextBlockId(), 'displayName' => $this->getDisplayName(), ]; } }