protected function getKeyPath($key)
    {
        if (empty($this->options['parents'])) {
            return $key;
        }

        if (is_string($this->options['parents'])) {
            $this->options['parents'] = explode('.', $this->options['parents']);
        }

        if (is_string($key)) {
            $key = explode('.', $key);
        }

        return array_merge((array) $this->options['parents'], (array) $key);
    }
protected function getKeyPath($key)
    {
        if (empty($this->options['parents'])) {
            return $key;
        }

        if (is_string($this->options['parents'])) {
            $this->options['parents'] = explode('.', $this->options['parents']);
        }

        if (is_string($key)) {
            $key = explode('.', $key);
        }

        return array_merge((array) $this->options['parents'], (array) $key);
    }
protected function getKeyPath ( $ key ) { if ( empty ( $ this -> options [ 'parents' ] ) ) { return $ key ; } if ( is_string ( $ this -> options [ 'parents' ] ) ) { $ this -> options [ 'parents' ] = explode ( '.' , $ this -> options [ 'parents' ] ) ; } if ( is_string ( $ key ) ) { $ key = explode ( '.' , $ key ) ; } return array_merge ( ( array ) $ this -> options [ 'parents' ] , ( array ) $ key ) ; }
Returns an array that represents a path to a nested array value
@param string|array $key
@return array
Returns an array that represents a path to a nested array value