src/Webtrees/Module/Certificates/Model/Certificate.php
public function setSource($xref){
		if($xref instanceof Source){
			$this->source = $xref;
		} else {
			$this->source = Source::getInstance($xref, $this->tree);
		}
	}
public function setSource($xref){
		if($xref instanceof Source){
			$this->source = $xref;
		} else {
			$this->source = Source::getInstance($xref, $this->tree);
		}
	}
public function setSource ( $ xref ) { if ( $ xref instanceof Source ) { $ this -> source = $ xref ; } else { $ this -> source = Source :: getInstance ( $ xref , $ this -> tree ) ; } }
Define a source associated with the certificate

@param string|Source $xref
Define a source associated with the certificate