| Total Complexity | 5 |
| Total Lines | 25 |
| Duplicated Lines | 0 % |
| Changes | 3 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | trait HasChildClasses |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * A general method for finding child classes such as nested Blocks and Fields. |
||
| 14 | * Tries to match them based on their type and name |
||
| 15 | * |
||
| 16 | * @param $type |
||
| 17 | * @param $name |
||
| 18 | * @return string|null |
||
| 19 | */ |
||
| 20 | public function getChildClassName($type, $name): ?string |
||
| 35 | } |
||
| 36 | } |