src/org/nameapi/client/services/parser/OutputPersonName.php
public function getAll($termType) {
        $arr = array();
        foreach ($this->terms as $term) {
            if ((string)$term->getTermType() === $termType) {
                array_push($arr, $term);
            }
        }
        return $arr;
    }
public function getAll($termType) {
        $arr = array();
        foreach ($this->terms as $term) {
            if ((string)$term->getTermType() === $termType) {
                array_push($arr, $term);
            }
        }
        return $arr;
    }
public function getAll ( $ termType ) { $ arr = array ( ) ; foreach ( $ this -> terms as $ term ) { if ( ( string ) $ term -> getTermType ( ) === $ termType ) { array_push ( $ arr , $ term ) ; } } return $ arr ; }
Returns all terms that have the given term type, or empty array if none.
@param string $termType
@return Term[]
Returns all terms that have the given term type or empty array if none .