Last active
December 24, 2023 15:25
-
-
Save mcsee/08bc4e593f42ce14460f95de78be8db9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? | |
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