|null */ public ?array $result = null; public ?string $error = null; public function mount(int|string $record): void { $this->record = $this->resolveRecord($record); } public function test(MappingTester $tester): void { $this->validate(['person' => ['required', 'string', 'max:255']], attributes: ['person' => 'E-Mail-Adresse']); $this->result = null; $this->error = null; try { $this->result = $tester->test($this->record, trim($this->person)); } catch (Throwable $e) { $this->error = $e->getMessage(); } } }