private function publishDomainEvents(Account $account) { iter\apply($this->handleEvent(), $account->recordedMessages()); $account->eraseMessages(); }
private function publishDomainEvents(Player $player) { iter\apply($this->handleEvent(), $player->recordedMessages()); $player->eraseMessages(); }
/** * @Then /^should exists accounts:$/ */ public function shouldExistsAccounts(TableNode $accounts) { iter\apply($this->ensureExpectedAccount(), $accounts); }
/** * @Given /^there are registered players:$/ */ public function thereAreRegisteredPlayers(TableNode $players) { iter\apply($this->registerPlayer(), $players); }