* Gets the last segment of a path separated by '/'. */
(string $path)
| 280 | * Gets the last segment of a path separated by '/'. |
| 281 | */ |
| 282 | private function getHeaderFromPath(string $path): string { |
| 283 | $parts = explode('/', $path); |
| 284 | return end($parts); |
| 285 | } |
| 286 | |
| 287 | /** |
| 288 | * get array object from string |