public function pathEndIdentifierType()
    {
        $end = $this->pathEnd();

        if (isset($end['id'])) {
            return self::TYPE_ID;
        }

        if (isset($end['name'])) {
            return self::TYPE_NAME;
        }

        return null;
    }