public function getFirst()
    {
        $element = null;

        if (
            $this->hasParent() and
            $this->parent->hasElements()
        ) {
            $element = $this->parent->elements[0];
        }

        return $element;
    }
public function getFirst()
    {
        $element = null;

        if (
            $this->hasParent() and
            $this->parent->hasElements()
        ) {
            $element = $this->parent->elements[0];
        }

        return $element;
    }
public function getFirst ( ) { $ element = null ; if ( $ this -> hasParent ( ) and $ this -> parent -> hasElements ( ) ) { $ element = $ this -> parent -> elements [ 0 ] ; } return $ element ; }
Return first child of parent of current object

@return Tag|null
Return first child of parent of current object