Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
38 | public function create(Field $field, $method, $value) |
||
39 | { |
||
40 | $event = new PreCreateFilterConditionEvent($field->getDataType(), $value, $method); |
||
41 | $this->eventDispatcher->dispatch( |
||
42 | InterpreterEvents::PRE_CREATE_FILTER_CONDITION, |
||
43 | $event |
||
44 | ); |
||
45 | $databaseValue = $event->getDatabaseValue(); |
||
46 | |||
47 | return new FilterCondition($field->getUniqueName(), $method, $value, $databaseValue); |
||
48 | } |
||
49 | } |
||
50 |