Conditions | 4 |
Paths | 3 |
Total Lines | 10 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
49 | protected function generateValue($value) |
||
50 | { |
||
51 | foreach (['__toSynopsisValue', '__toString', 'getId', 'getName'] as $method) { |
||
52 | if (method_exists($value, $method) && is_callable([$value, $method])) { |
||
53 | return (string) call_user_func([$value, $method]); |
||
54 | } |
||
55 | } |
||
56 | |||
57 | return ''; |
||
58 | } |
||
59 | |||
70 |