/**
  * @param IFoundationMember $foundation_member
  * @param IElection         $last_election
  * @return IFoundationMemberRevocationNotification
  */
 public function build(IFoundationMember $foundation_member, IElection $last_election)
 {
     $notification = new FoundationMemberRevocationNotification();
     $notification->RecipientID = $foundation_member->getIdentifier();
     $notification->LastElectionID = $last_election->getIdentifier();
     return $notification;
 }
예제 #2
0
 /**
  * @param IElection         $election
  * @param IFoundationMember $voter
  * @return IVote
  */
 public function buildVote(IElection $election, IFoundationMember $voter)
 {
     $vote = new Vote();
     $vote->ElectionID = $election->getIdentifier();
     $vote->VoterID = $voter->getIdentifier();
     return $vote;
 }