src/Mapping.php
private function parseKeyFromId(string $id): ?string
    {
        $id = $this->removePrefix($id);

        $matches = [];
        if (1 === preg_match('|/([^/]+)/[^/]+$|', $id, $matches)) {
            return $matches[1];
        }

        return null;
    }
private function parseKeyFromId(string $id): ?string
    {
        $id = $this->removePrefix($id);

        $matches = [];
        if (1 === preg_match('|/([^/]+)/[^/]+$|', $id, $matches)) {
            return $matches[1];
        }

        return null;
    }
Parse the key from an id (path)