private function dotGet(string $name)
    {
        $data = $this->data;

        //Generating path relative to a given name and prefix
        $path = (!empty($this->prefix) ? $this->prefix . '.' : '') . $name;
        if (empty($path)) {
            return $data;
        }

        $path = explode('.', rtrim($path, '.'));
        foreach ($path as $step) {
            if (!is_array($data) || !array_key_exists($step, $data)) {
                throw new DotNotFoundException("Unable to find requested element '{$name}'");
            }
            $data = &$data[$step];
        }

        return $data;
    }
private function dotGet(string $name)
    {
        $data = $this->data;

        //Generating path relative to a given name and prefix
        $path = (!empty($this->prefix) ? $this->prefix . '.' : '') . $name;
        if (empty($path)) {
            return $data;
        }

        $path = explode('.', rtrim($path, '.'));
        foreach ($path as $step) {
            if (!is_array($data) || !array_key_exists($step, $data)) {
                throw new DotNotFoundException("Unable to find requested element '{$name}'");
            }
            $data = &$data[$step];
        }

        return $data;
    }
private function dotGet ( string $ name ) { $ data = $ this -> data ; //Generating path relative to a given name and prefix $ path = ( ! empty ( $ this -> prefix ) ? $ this -> prefix . '.' : '' ) . $ name ; if ( empty ( $ path ) ) { return $ data ; } $ path = explode ( '.' , rtrim ( $ path , '.' ) ) ; foreach ( $ path as $ step ) { if ( ! is_array ( $ data ) || ! array_key_exists ( $ step , $ data ) ) { throw new DotNotFoundException ( "Unable to find requested element '{$name}'" ) ; } $ data = & $ data [ $ step ] ; } return $ data ; }
Get element using dot notation.

@param string $name
@return mixed|null

@throws DotNotFoundException
Get element using dot notation .