*/ public function forms(): array; /** * Everything the mapper needs for one form, straight from the database. * * @param string $id Form id in the other plugin. * @return array|null Null when the form does not exist. */ public function read( string $id ): ?array; /** * Turn one form into a SubtleForms schema and a report. Writes nothing. * * @param array $raw What read() returned. * @param array $context Site facts: site_title, site_url, admin_email. * @return array{title: string, schema: array, notes: ImportNotes} */ public function map( array $raw, array $context ): array; }