Skip to content

Instantly share code, notes, and snippets.

@mcsee
Last active December 24, 2023 15:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mcsee/08bc4e593f42ce14460f95de78be8db9 to your computer and use it in GitHub Desktop.
Save mcsee/08bc4e593f42ce14460f95de78be8db9 to your computer and use it in GitHub Desktop.
<?
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