Conditions | 2 |
Paths | 2 |
Total Lines | 13 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
28 | public static function get_extra_config($class = null, $extensionClass = null, $args = null) |
||
29 | { |
||
30 | $config = []; |
||
31 | |||
32 | // Only add these extensions if the $class is set to DataExtensionTest_Player, to |
||
33 | // test that the argument works. |
||
34 | if (strcasecmp($class, Variation::class) === 0) { |
||
35 | $config['has_one'] = [ |
||
36 | 'Product' => TestProduct::class, |
||
37 | ]; |
||
38 | } |
||
39 | |||
40 | return $config; |
||
41 | } |
||
43 |