mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-03 22:47:03 +03:00
Remove useless NewInstance
Bugfix: BodyStructure->SearchCharset return value
This commit is contained in:
parent
82e560bc53
commit
693e0f4c10
61 changed files with 802 additions and 1345 deletions
|
|
@ -49,7 +49,7 @@ class Account
|
|||
*/
|
||||
private $sParentEmail;
|
||||
|
||||
protected function __construct(string $sEmail, string $sLogin, string $sPassword,
|
||||
function __construct(string $sEmail, string $sLogin, string $sPassword,
|
||||
\RainLoop\Model\Domain $oDomain, string $sSignMeToken = '', string $sProxyAuthUser = '',
|
||||
string $sProxyAuthPassword = '', string $sClientCert = '')
|
||||
{
|
||||
|
|
@ -64,13 +64,6 @@ class Account
|
|||
$this->sParentEmail = '';
|
||||
}
|
||||
|
||||
public static function NewInstance(string $sEmail, string $sLogin, string $sPassword,
|
||||
\RainLoop\Model\Domain $oDomain, string $sSignMeToken = '', string $sProxyAuthUser = '',
|
||||
string $sProxyAuthPassword = '', string $sClientCert = '') : self
|
||||
{
|
||||
return new self($sEmail, $sLogin, $sPassword, $oDomain, $sSignMeToken, $sProxyAuthUser, $sProxyAuthPassword, $sClientCert);
|
||||
}
|
||||
|
||||
public function Email() : string
|
||||
{
|
||||
return $this->sEmail;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue