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

@ -24,7 +24,7 @@ class Template
*/
private $bPopulateAlways;
protected function __construct(string $sId = '', string $sName = '', string $sBody = '')
function __construct(string $sId = '', string $sName = '', string $sBody = '')
{
$this->sId = $sId;
$this->sName = $sName;
@ -32,11 +32,6 @@ class Template
$this->bPopulateAlways = false;
}
public static function NewInstance(string $sId = '', string $sName = '', string $sBody = '') : self
{
return new self($sId, $sName, $sBody);
}
public function Id() : string
{
return $this->sId;