Blueprints/src/BlueprintSchema.php
protected function getNested($path = null, $separator = '.')
    {
        if (!$path) {
            return $this->nested;
        }
        $parts = explode($separator, $path);
        $item = array_pop($parts);

        $nested = $this->nested;
        foreach ($parts as $part) {
            if (!isset($nested[$part])) {
                $part = '*';
                if (!isset($nested[$part])) {
                    return [];
                }
            }
            $nested = $nested[$part];
        }

        return isset($nested[$item]) ? $nested[$item] : (isset($nested['*']) ? $nested['*'] : null);
    }
protected function getNested($path = null, $separator = '.')
    {
        if (!$path) {
            return $this->nested;
        }
        $parts = explode($separator, $path);
        $item = array_pop($parts);

        $nested = $this->nested;
        foreach ($parts as $part) {
            if (!isset($nested[$part])) {
                $part = '*';
                if (!isset($nested[$part])) {
                    return [];
                }
            }
            $nested = $nested[$part];
        }

        return isset($nested[$item]) ? $nested[$item] : (isset($nested['*']) ? $nested['*'] : null);
    }
protected function getNested ( $ path = null , $ separator = '.' ) { if ( ! $ path ) { return $ this -> nested ; } $ parts = explode ( $ separator , $ path ) ; $ item = array_pop ( $ parts ) ; $ nested = $ this -> nested ; foreach ( $ parts as $ part ) { if ( ! isset ( $ nested [ $ part ] ) ) { $ part = '*' ; if ( ! isset ( $ nested [ $ part ] ) ) { return [ ] ; } } $ nested = $ nested [ $ part ] ; } return isset ( $ nested [ $ item ] ) ? $ nested [ $ item ] : ( isset ( $ nested [ '*' ] ) ? $ nested [ '*' ] : null ) ; }
Get property from the definition.

@param  string  $path  Comma separated path to the property.
@param  string  $separator
@return array|string|null
@internal
Get property from the definition .