@@ 62-68 (lines=7) @@ | ||
59 | * @param int $bits Optional version number bits to return. |
|
60 | * @return string |
|
61 | */ |
|
62 | public function getVersionString($bits = null) |
|
63 | { |
|
64 | if (is_null($bits)) { |
|
65 | return $this->version; |
|
66 | } |
|
67 | return implode('.', $this->versionFromBits($bits)); |
|
68 | } |
|
69 | ||
70 | /** |
|
71 | * Returns the version number as a full number (integer) this is the same as the version string but without dots and will drop leading zeros! |
|
@@ 75-81 (lines=7) @@ | ||
72 | * @param int $bits Optional version number bits to return. |
|
73 | * @return int |
|
74 | */ |
|
75 | public function getVersionNumber($bits = null) |
|
76 | { |
|
77 | if (is_null($bits)) { |
|
78 | return (int)str_replace('.', '', $this->version); |
|
79 | } |
|
80 | return implode('', $this->versionFromBits($bits)); |
|
81 | } |
|
82 | ||
83 | /** |
|
84 | * Returns the version hash (if one is present) (eg. g0106dc9) |