# css-javascript-toolbox/11/framework/version/version.php

CSS &amp; JavaScript Toolbox, version 11. 38 lines.

- Page: https://pluginprobe.com/plugins/css-javascript-toolbox/11/code/framework/version/version.php
- Raw: https://pluginprobe.com/plugins/css-javascript-toolbox/11/raw/framework/version/version.php
- Modified: 2020-10-30T11:39:50+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/css-javascript-toolbox/11/code/framework/version/version.php#L10-L20`.

```php
<?php
/**
* 
*/

/**
* 
*/
class CJT_Framework_Version_Version {
	
	/**
	* put your comment there...
	* 
	* @var mixed
	*/
	protected $version;
	
	/**
	* put your comment there...
	* 
	* @param mixed $version
	* @return CJT_Framework_Version_Version
	*/
	public function __construct($version) {
		// Get version components.
		$this->version = explode('.', $version);
	}
	
	/**
	* put your comment there...
	* 
	*/
	public function getMajor() {
		return (int) $this->version[0];
	}

} // End class.

```
