initial
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
|
||||
class RsvFormElementRegistry {
|
||||
/** @var array<string, RsvFormElementHandler> */
|
||||
public array $handlers = [];
|
||||
|
||||
public function register(string $type, RsvFormElementHandler $handler): void {
|
||||
$this->handlers[$type] = $handler;
|
||||
}
|
||||
|
||||
public function get(string $type): ?RsvFormElementHandler {
|
||||
return $this->handlers[$type] ?? null;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user