# easy-code-manager/1.2.1/framework/version/version.php

FluentSnippets – High-Performance Code Snippets, Header &amp; Footer Code, Custom CSS &amp; PHP Code Manager, version 1.2.1. 38 lines.

- Page: https://pluginprobe.com/plugins/easy-code-manager/1.2.1/code/framework/version/version.php
- Raw: https://pluginprobe.com/plugins/easy-code-manager/1.2.1/raw/framework/version/version.php
- Modified: 2018-11-20T15:24:46+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/easy-code-manager/1.2.1/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.

```
