/** * @param string $name name * @param integer $bankPartyIdentification bankPartyIdentification * * @return Debtor */ public static function create($name = null, $bankPartyIdentification = null) { $instance = new static(); $instance->name = $name; $instance->identification = Identification::create(null, $bankPartyIdentification); return $instance; }
/** * @param string $iban iban * * @return CreditorAccount */ public static function create($iban = null) { $instance = new static(); $instance->identification = Identification::create($iban); return $instance; }