Conditions | 2 |
Paths | 2 |
Total Lines | 13 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
31 | public static function get(FormObject $formObject) |
||
32 | { |
||
33 | $hash = $formObject->getHash(); |
||
34 | |||
35 | if (null === self::$instance[$hash]) { |
||
36 | /** @noinspection PhpMethodParametersCountMismatchInspection */ |
||
37 | self::$instance[$hash] = Core::get() |
||
38 | ->getObjectManager() |
||
39 | ->get(ConditionProcessor::class, $formObject); |
||
40 | } |
||
41 | |||
42 | return self::$instance[$hash]; |
||
43 | } |
||
44 | } |
||
45 |