src/Snapshotting/InMemorySnapshotStore.php
public function save(AggregateRoot $root)
    {
        $snapshot = new Snapshot(
            $root,
            $root->getVersion(),
            new \DateTime
        );

        $this->snapshots[(string) $root->getIdentity()][] = $snapshot;
    }
public function save(AggregateRoot $root)
    {
        $snapshot = new Snapshot(
            $root,
            $root->getVersion(),
            new \DateTime
        );

        $this->snapshots[(string) $root->getIdentity()][] = $snapshot;
    }
public function save ( AggregateRoot $ root ) { $ snapshot = new Snapshot ( $ root , $ root -> getVersion ( ) , new \ DateTime ) ; $ this -> snapshots [ ( string ) $ root -> getIdentity ( ) ] [ ] = $ snapshot ; }
Save given snapshot

@param AggregateRoot $root
Save given snapshot