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