Example #1
0
 public static function collect($connection, $table_prefix = null, $session_id = null)
 {
     $collector = new self($connection, $table_prefix, $session_id);
     $collector->record();
 }
Example #2
0
 public static function open(AccountOwner $owner)
 {
     $account = new self($owner, VirtualMoney::coins(0));
     $account->record(new AccountOpened($owner->value(), new DateTimeImmutable()));
     return $account;
 }