Skip to content

Commit 5b63309

Browse files
committed
Add ValidateOptionsInterface (wol-soft/php-json-schema-model-generator#62)
1 parent 85ffedc commit 5b63309

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?php
2+
3+
declare(strict_types = 1);
4+
5+
namespace PHPModelGenerator\Filter;
6+
7+
interface ValidateOptionsInterface
8+
{
9+
/**
10+
* Implement validations against the provided options array.
11+
* The validation will be executed during the model generation process.
12+
* Simply throw an exception if the provided options are invalid for your custom filter
13+
* (e.g. missing required option)
14+
*/
15+
public function validateOptions(array $options): void;
16+
}

0 commit comments

Comments
 (0)