| Total Complexity | 3 |
| Total Lines | 31 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | trait SVersions |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @var int |
||
| 15 | */ |
||
| 16 | private $versionIDX = null; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @return bool |
||
| 20 | */ |
||
| 21 | public function hasVersion() : bool |
||
| 22 | { |
||
| 23 | return ! is_null($this->versionIDX); |
||
| 24 | } |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @param int $index |
||
| 28 | * @return self |
||
| 29 | */ |
||
| 30 | public function setVersion(int $index) : self |
||
| 34 | } |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @return int |
||
| 38 | */ |
||
| 39 | public function getVersion() : int |
||
| 44 |