public function getParent()
    {
        if (!$this->currentFileName || !$this->metas) {
            return null;
        }

        $meta = $this->metas->get($this->currentFileName);

        if (!$meta || !isset($meta['parent'])) {
            return null;
        }

        $parent = $this->metas->get($meta['parent']);

        if (!$parent) {
            return null;
        }

        return $parent;
    }
public function getParent()
    {
        if (!$this->currentFileName || !$this->metas) {
            return null;
        }

        $meta = $this->metas->get($this->currentFileName);

        if (!$meta || !isset($meta['parent'])) {
            return null;
        }

        $parent = $this->metas->get($meta['parent']);

        if (!$parent) {
            return null;
        }

        return $parent;
    }
public function getParent ( ) { if ( ! $ this -> currentFileName || ! $ this -> metas ) { return null ; } $ meta = $ this -> metas -> get ( $ this -> currentFileName ) ; if ( ! $ meta || ! isset ( $ meta [ 'parent' ] ) ) { return null ; } $ parent = $ this -> metas -> get ( $ meta [ 'parent' ] ) ; if ( ! $ parent ) { return null ; } return $ parent ; }
Get my parent metas
Get my parent metas