2013-09-25 03:04:44 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace MailSo;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @category MailSo
|
|
|
|
*/
|
|
|
|
final class Version
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* @var string
|
|
|
|
*/
|
2014-02-06 19:56:55 +08:00
|
|
|
const APP_VERSION = '1.3.0';
|
2013-09-25 03:04:44 +08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
const MIME_X_MAILER = 'MailSo';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return string
|
|
|
|
*/
|
|
|
|
public static function AppVersion()
|
|
|
|
{
|
|
|
|
return \MailSo\Version::APP_VERSION;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return string
|
|
|
|
*/
|
|
|
|
public static function XMailer()
|
|
|
|
{
|
|
|
|
return \MailSo\Version::MIME_X_MAILER.'/'.\MailSo\Version::APP_VERSION;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return string
|
|
|
|
*/
|
|
|
|
public static function Signature()
|
|
|
|
{
|
|
|
|
$oPhar = new \Phar('mailso.phar');
|
|
|
|
return $oPhar->getSignature();
|
|
|
|
}
|
|
|
|
}
|