public function __construct(IdentifierGenerator $generator, StreamFactory $stream_factory) { $this->stream_factory = $stream_factory; $this->id = $generator->null(); $this->limit = new Integer_(1000); $this->chunk_size = new Integer_(1000); }
public function reset(IdentifierGenerator $identifier_generator, DateTimeGenerator $datetime_generator) { return new Snapshot($this->id, $this->version->reset(), $datetime_generator->now(), $identifier_generator->null()); }