1<?php
2
3/*
4 * This file is part of MailSo.
5 *
6 * (c) 2014 Usenko Timur
7 *
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
10 */
11
12namespace MailSo;
13
14/**
15 * @category MailSo
16 */
17final class Version
18{
19	/**
20	 * @var string
21	 */
22	const APP_VERSION = '2.0.1';
23
24	/**
25	 * @var string
26	 */
27	const MIME_X_MAILER = 'MailSo';
28
29	/**
30	 * @return string
31	 */
32	public static function AppVersion()
33	{
34		return \MailSo\Version::APP_VERSION;
35	}
36
37	/**
38	 * @return string
39	 */
40	public static function XMailer()
41	{
42		return \MailSo\Version::MIME_X_MAILER.'/'.\MailSo\Version::APP_VERSION;
43	}
44
45	/**
46	 * @return string
47	 */
48	public static function Signature()
49	{
50		$sSignature = '';
51		if (\defined('MAILSO_LIBRARY_USE_PHAR'))
52		{
53			$oPhar = new \Phar('mailso.phar');
54			$sSignature = $oPhar->getSignature();
55		}
56
57		return $sSignature;
58	}
59}
60