* Gets the last segment of a path separated by '/'. */
(string $path)
| 245 | * Gets the last segment of a path separated by '/'. |
| 246 | */ |
| 247 | private function getHeaderFromPath(string $path): string { |
| 248 | $parts = explode('/', $path); |
| 249 | return end($parts); |
| 250 | } |
| 251 | |
| 252 | /** |
| 253 | * get array object from string |