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

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

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

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

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

@param string $key The key to search for.

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