Skip to content

Commit 84e085c

Browse files
committed
Updated README
1 parent 60c744d commit 84e085c

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,24 @@ $migrator->migrate('top', $output); // migrate to the latest version
6767
$migrator->migrate('bottom', $output); // revert all versions
6868
````
6969

70+
### Listing versions
71+
72+
You can access information about available versions from the
73+
`VersionCollection` object:
74+
75+
76+
````php
77+
$versionCollection->getAllVersions();
78+
````
79+
80+
### Determining the current version
81+
82+
You can determine the current version from the `VersionStorage` object:
83+
84+
````php
85+
$versionStroage->getCurrentVersion();
86+
````
87+
7088
Version classes
7189
---------------
7290

0 commit comments

Comments
 (0)