1 | <?php |
||
21 | final class CallbackSchema implements SchemaInterface |
||
22 | { |
||
23 | /** |
||
24 | * @var callable |
||
25 | */ |
||
26 | private $buildSettings; |
||
27 | |||
28 | /** |
||
29 | * @var callable |
||
30 | */ |
||
31 | private $buildForm; |
||
32 | |||
33 | /** |
||
34 | * @see SchemaInterface |
||
35 | * |
||
36 | * @param callable $buildSettings Receives the same arguments as SchemaInterface::buildSettings method |
||
37 | * @param callable $buildForm Receives the same arguments as SchemaInterface::buildForm method |
||
38 | */ |
||
39 | public function __construct(callable $buildSettings, callable $buildForm) |
||
44 | |||
45 | /** |
||
46 | * {@inheritdoc} |
||
47 | */ |
||
48 | public function buildSettings(SettingsBuilderInterface $builder) |
||
55 | |||
56 | /** |
||
57 | * {@inheritdoc} |
||
58 | */ |
||
59 | public function buildForm(FormBuilderInterface $builder) |
||
66 | } |
||
67 |