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