| Total Complexity | 4 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 5 | trait BelongsToArray |
||
| 6 | { |
||
| 7 | 11 | public function belongsToArray(): bool |
|
| 10 | } |
||
| 11 | |||
| 12 | 10 | public function getAncestorName(): string |
|
| 17 | } |
||
| 18 | |||
| 19 | 10 | public function getDescendantName(): string |
|
| 20 | { |
||
| 21 | 10 | preg_match('~^[^\[\]]+\[([^\[\]]+)\]$~', $this->name(), $matches); |
|
| 22 | |||
| 23 | 10 | return $matches[1]; |
|
| 24 | } |
||
| 25 | |||
| 26 | 9 | public function getDotPatternName(): string |
|
| 29 | } |
||
| 30 | |||
| 31 | abstract public function name(string $name = null); |
||
| 32 | } |
||
| 33 |