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