| 1 |
<?php |
| 2 |
/** |
| 3 |
* |
| 4 |
*/ |
| 5 |
|
| 6 |
/** |
| 7 |
* |
| 8 |
*/ |
| 9 |
class CJT_Framework_Version_Version { |
| 10 |
|
| 11 |
/** |
| 12 |
* put your comment there... |
| 13 |
* |
| 14 |
* @var mixed |
| 15 |
*/ |
| 16 |
protected $version; |
| 17 |
|
| 18 |
/** |
| 19 |
* put your comment there... |
| 20 |
* |
| 21 |
* @param mixed $version |
| 22 |
* @return CJT_Framework_Version_Version |
| 23 |
*/ |
| 24 |
public function __construct($version) { |
| 25 |
// Get version components. |
| 26 |
$this->version = explode('.', $version); |
| 27 |
} |
| 28 |
|
| 29 |
/** |
| 30 |
* put your comment there... |
| 31 |
* |
| 32 |
*/ |
| 33 |
public function getMajor() { |
| 34 |
return $this->version[0]; |
| 35 |
} |
| 36 |
|
| 37 |
} // End class. |
| 38 |
|