protected function getSourceElement(): ?XmlElement
    {
        $list = $this->node->getElementsByTagNameNS(XliffFile::XLIFF_NS, 'source');
        if ($list->length && $element = $list->item(0)) {
            /** @var XmlElement $element */
            return $element;
        }

        return null;
    }
protected function getSourceElement(): ?XmlElement
    {
        $list = $this->node->getElementsByTagNameNS(XliffFile::XLIFF_NS, 'source');
        if ($list->length && $element = $list->item(0)) {
            /** @var XmlElement $element */
            return $element;
        }

        return null;
    }
protected function getSourceElement ( ) : ? XmlElement { $ list = $ this -> node -> getElementsByTagNameNS ( XliffFile :: XLIFF_NS , 'source' ) ; if ( $ list -> length && $ element = $ list -> item ( 0 ) ) { /** @var XmlElement $element */ return $ element ; } return null ; }
Fetch the target element.

@return XmlElement|null
Fetch the target element .