Remove useless NewInstance

Bugfix: BodyStructure->SearchCharset return value
This commit is contained in:
djmaze 2020-05-08 11:49:18 +02:00
parent 82e560bc53
commit 693e0f4c10
61 changed files with 802 additions and 1345 deletions

View file

@ -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;