src/snac/data/BiogHist.php
/**
     * Append to this BiogHist
     *
     * Appends the information in the given biog hist to this one.  The text field is appended
     * to this one, the SCMs are merged, and if there is no language in this biogHist,
     * then the language is copied.  Otherwise, the given biogHist's language will be dropped.
     *
     * @param  \snac\data\BiogHist $biogHist BiogHist to append
     */
Append to this BiogHist
Appends the information in the given biog hist to this one.  The text field is appended
to this one, the SCMs are merged, and if there is no language in this biogHist,
then the language is copied.  Otherwise, the given biogHist's language will be dropped.


Append to this BiogHist Appends the information in the given biog hist to this one . The text field is appended to this one the SCMs are merged and if there is no language in this biogHist then the language is copied . Otherwise the given biogHist ' s language will be dropped .
public function append($biogHist) {
        if ($biogHist === null) {
            return;
        }
        $this->text .= $biogHist->text;
        $this->snacControlMetadata = array_merge($this->snacControlMetadata, $biogHist->snacControlMetadata);
        if ($this->language === null || $this->language->isEmpty()) {
            $this->language = $biogHist->language;
        }
    }
public function append ( $ biogHist ) { if ( $ biogHist === null ) { return ; } $ this -> text .= $ biogHist -> text ; $ this -> snacControlMetadata = array_merge ( $ this -> snacControlMetadata , $ biogHist -> snacControlMetadata ) ; if ( $ this -> language === null || $ this -> language -> isEmpty ( ) ) { $ this -> language = $ biogHist -> language ; } }
Append to this BiogHist
 Appends the information in the given biog hist to this one.
Append to this BiogHist Appends the information in the given biog hist to this one .
// Append the text objects // Combine SCMs // If this biogHist's language is null or empty, pull in the given biogHist's language