Blueprints/src/BlueprintSchema.php
public function getPropertyName($path = null, $separator = '.')
    {
        $parts = explode($separator, $path);
        $nested = $this->nested;

        $result = [];
        while (($part = array_shift($parts)) !== null) {
            if (!isset($nested[$part])) {
                if (isset($nested['*'])) {
                    $part = '*';
                } else {
                    return implode($separator, array_merge($result, [$part], $parts));
                }
            }
            $result[] = $part;
            $nested = $nested[$part];
        }

        return implode('.', $result);
    }
public function getPropertyName($path = null, $separator = '.')
    {
        $parts = explode($separator, $path);
        $nested = $this->nested;

        $result = [];
        while (($part = array_shift($parts)) !== null) {
            if (!isset($nested[$part])) {
                if (isset($nested['*'])) {
                    $part = '*';
                } else {
                    return implode($separator, array_merge($result, [$part], $parts));
                }
            }
            $result[] = $part;
            $nested = $nested[$part];
        }

        return implode('.', $result);
    }
public function getPropertyName ( $ path = null , $ separator = '.' ) { $ parts = explode ( $ separator , $ path ) ; $ nested = $ this -> nested ; $ result = [ ] ; while ( ( $ part = array_shift ( $ parts ) ) !== null ) { if ( ! isset ( $ nested [ $ part ] ) ) { if ( isset ( $ nested [ '*' ] ) ) { $ part = '*' ; } else { return implode ( $ separator , array_merge ( $ result , [ $ part ] , $ parts ) ) ; } } $ result [ ] = $ part ; $ nested = $ nested [ $ part ] ; } return implode ( '.' , $ result ) ; }
Returns name of the property with given path.

@param string $path
@param string $separator
@return string
Returns name of the property with given path .