src/org/nameapi/client/services/parser/OutputPersonName.php
public function getFirst($termType) {
        foreach ($this->terms as $term) {
            if ((string)$term->getTermType() === $termType) {
                return $term;
            }
        }
        return null;
    }
public function getFirst($termType) {
        foreach ($this->terms as $term) {
            if ((string)$term->getTermType() === $termType) {
                return $term;
            }
        }
        return null;
    }
public function getFirst ( $ termType ) { foreach ( $ this -> terms as $ term ) { if ( ( string ) $ term -> getTermType ( ) === $ termType ) { return $ term ; } } return null ; }
Returns the first term that has the given term type, or null if none.
@param string $termType
@return Term
Returns the first term that has the given term type or null if none .