| Conditions | 3 |
| Paths | 3 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | public function generate(Config $config) |
||
| 16 | { |
||
| 17 | $parts = array(); |
||
| 18 | if ($config->parent) { |
||
| 19 | $parent = $config->parent->isRepresentant() ? $config->parent->parent : $config->parent; |
||
| 20 | $parts[] = $this->generate($parent); |
||
| 21 | } |
||
| 22 | |||
| 23 | $parts[] = $this->getPrefix($config); |
||
| 24 | |||
| 25 | return implode('_', array_filter($parts)); |
||
| 26 | } |
||
| 27 | |||
| 44 |