Skip to content

Instantly share code, notes, and snippets.

@mcsee
Last active Apr 28, 2021
Embed
What would you like to do?
<?
function __construct($aParty, $aCounterParty, $anAmount, $aDate) {
if ($aParty == $aCounterParty) {
throw new PartyAndCounterpartyCannotBeTheSameException($aParty, $aCounterParty);
}
$this->party = $aParty;
$this->counterparty = $aCounterParty;
$this->amount = $anAmount;
$this->date = $aDate;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment