public function getSource($key)
    {
        $unit = $this->searchForId($key);

        $source = $this->getXPathFirstItem('xliff:source', $unit);
        if ($source && $source->firstChild) {
            return $source->firstChild->nodeValue;
        }

        return null;
    }
public function getSource($key)
    {
        $unit = $this->searchForId($key);

        $source = $this->getXPathFirstItem('xliff:source', $unit);
        if ($source && $source->firstChild) {
            return $source->firstChild->nodeValue;
        }

        return null;
    }
public function getSource ( $ key ) { $ unit = $ this -> searchForId ( $ key ) ; $ source = $ this -> getXPathFirstItem ( 'xliff:source' , $ unit ) ; if ( $ source && $ source -> firstChild ) { return $ source -> firstChild -> nodeValue ; } return null ; }
Return the source value for a key.

@param string $key The key to search for.

@return null|string
Return the source value for a key .