1: <?php
2: /**
3: * PHP version 5
4: * @package generalDriver
5: * @author Christian Schiffler <c.schiffler@cyberspectrum.de>
6: * @author Stefan Heimes <stefan_heimes@hotmail.com>
7: * @author Tristan Lins <tristan.lins@bit3.de>
8: * @copyright The MetaModels team.
9: * @license LGPL.
10: * @filesource
11: */
12:
13: namespace DcGeneral\Data;
14:
15: use DcGeneral\Exception\DcGeneralInvalidArgumentException;
16:
17: interface VersionModelInterface extends ModelInterface
18: {
19: /**
20: * Return the version string of this model version.
21: *
22: * @return string
23: */
24: public function getVersion();
25:
26: /**
27: * Determine if this is the current version of the model.
28: *
29: * @return bool
30: */
31: public function isCurrent();
32:
33: /**
34: * Return the data time this version was created.
35: *
36: * @return \DateTime
37: */
38: public function getDateTime();
39:
40: /**
41: * Return the name of the version's author, at the moment the version was created.
42: *
43: * @return string
44: */
45: public function getAuthorName();
46:
47: /**
48: * Return the username of the version's author, at the moment the version was created.
49: *
50: * @return string
51: */
52: public function getAuthorUsername();
53:
54: /**
55: * Return the email of the version's author, at the moment the version was created.
56: *
57: * @return string
58: */
59: public function getAuthorEmail();
60: }
61: