* Gets the last segment of a path separated by '/'. */
(string $path)
| 285 | * Gets the last segment of a path separated by '/'. |
| 286 | */ |
| 287 | private function getHeaderFromPath(string $path): string { |
| 288 | $parts = explode('/', $path); |
| 289 | return end($parts); |
| 290 | } |
| 291 | |
| 292 | /** |
| 293 | * get array object from string |