name; } /** * @return string * @since 30.0.0 */ public function getDescription(): string { return $this->description; } /** * @return EShapeType * @since 30.0.0 */ public function getShapeType(): EShapeType { return $this->shapeType; } /** * @return array{name: string, description: string, type: "Number"|"Text"|"Audio"|"Image"|"Video"|"File"|"ListOfNumbers"|"ListOfTexts"|"ListOfImages"|"ListOfAudios"|"ListOfVideos"|"ListOfFiles"} * @since 30.0.0 */ public function jsonSerialize(): array { /** @var "Number"|"Text"|"Audio"|"Image"|"Video"|"File"|"ListOfNumbers"|"ListOfTexts"|"ListOfImages"|"ListOfAudios"|"ListOfVideos"|"ListOfFiles" $type */ $type = $this->getShapeType()->name; return [ 'name' => $this->getName(), 'description' => $this->getDescription(), 'type' => $type, ]; } }