Total Complexity | 2 |
Total Lines | 26 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
14 | final class ThrowExceptionInConstructorFilterMock extends AbstractFilter |
||
15 | { |
||
16 | /** |
||
17 | * @param QueryFilterManagerInterface $queryFilterManager |
||
18 | * @param TypecasterInterface $typecaster |
||
19 | * @param ParamNameGeneratorInterface $paramNameGenerator |
||
20 | * @param array<mixed> $options |
||
21 | */ |
||
22 | public function __construct( |
||
23 | QueryFilterManagerInterface $queryFilterManager, |
||
24 | TypecasterInterface $typecaster, |
||
25 | ParamNameGeneratorInterface $paramNameGenerator, |
||
26 | array $options = [] |
||
27 | ) { |
||
28 | parent::__construct($queryFilterManager, $typecaster, $paramNameGenerator, $options); |
||
29 | |||
30 | throw new \RuntimeException('This is is a test exception'); |
||
31 | } |
||
32 | |||
33 | /** |
||
34 | * @param QueryBuilderInterface $queryBuilder |
||
35 | * @param MetadataInterface $metadata |
||
36 | * @param array<mixed> $criteria |
||
37 | */ |
||
38 | public function filter(QueryBuilderInterface $queryBuilder, MetadataInterface $metadata, array $criteria): void |
||
40 | } |
||
41 | } |
||
42 |