data; } /** * @since 35.0.0 */ public function getShapeType(): EShapeType { return $this->shapeType; } /** * @since 35.0.0 */ public function getExtension(): string { return $this->extension; } public static function sanitizeExtension(string $ext): string { if ($ext === '') { return ''; } $ext = str_replace(['.', '/'], '', $ext); return $ext; } }