mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-05 15:37:03 +03:00
Resolve Declaration *Collection::append should be compatible with Collection::append
This commit is contained in:
parent
559ebe0f28
commit
5af6e30b8f
8 changed files with 19 additions and 11 deletions
|
|
@ -27,9 +27,10 @@ class AttachmentCollection extends \MailSo\Base\Collection
|
||||||
return new self();
|
return new self();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function append(Attachment $oFolder, bool $bToTop = false) : void
|
public function append($oAttachment, bool $bToTop = false) : void
|
||||||
{
|
{
|
||||||
parent::append($oFolder, $bToTop);
|
assert($oAttachment instanceof Attachment);
|
||||||
|
parent::append($oAttachment, $bToTop);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function InlineCount() : int
|
public function InlineCount() : int
|
||||||
|
|
|
||||||
|
|
@ -58,8 +58,9 @@ class FolderCollection extends \MailSo\Base\Collection
|
||||||
return new self();
|
return new self();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function append(Folder $oFolder, bool $bToTop = false) : void
|
public function append($oFolder, bool $bToTop = false) : void
|
||||||
{
|
{
|
||||||
|
assert($oFolder instanceof Folder);
|
||||||
parent::append($oFolder, $bToTop);
|
parent::append($oFolder, $bToTop);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -89,8 +89,9 @@ class MessageCollection extends \MailSo\Base\Collection
|
||||||
return new self();
|
return new self();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function append(Message $oMessage, bool $bToTop = false) : void
|
public function append($oMessage, bool $bToTop = false) : void
|
||||||
{
|
{
|
||||||
|
assert($oMessage instanceof Message);
|
||||||
parent::append($oMessage, $bToTop);
|
parent::append($oMessage, $bToTop);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -27,9 +27,10 @@ class AttachmentCollection extends \MailSo\Base\Collection
|
||||||
return new self();
|
return new self();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function append(Attachment $oFolder, bool $bToTop = false) : void
|
public function append($oAttachment, bool $bToTop = false) : void
|
||||||
{
|
{
|
||||||
parent::append($oFolder, $bToTop);
|
assert($oAttachment instanceof Attachment);
|
||||||
|
parent::append($oAttachment, $bToTop);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function LinkedAttachments() : array
|
public function LinkedAttachments() : array
|
||||||
|
|
|
||||||
|
|
@ -33,8 +33,9 @@ class EmailCollection extends \MailSo\Base\Collection
|
||||||
return new self($sEmailAddresses);
|
return new self($sEmailAddresses);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function append(Email $oEmail, bool $bToTop = false) : void
|
public function append($oEmail, bool $bToTop = false) : void
|
||||||
{
|
{
|
||||||
|
assert($oEmail instanceof Email);
|
||||||
parent::append($oEmail, $bToTop);
|
parent::append($oEmail, $bToTop);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -39,8 +39,9 @@ class HeaderCollection extends \MailSo\Base\Collection
|
||||||
return new self($sRawHeaders, $bStoreRawHeaders);
|
return new self($sRawHeaders, $bStoreRawHeaders);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function append(Header $oHeader, bool $bToTop = false) : void
|
public function append($oHeader, bool $bToTop = false) : void
|
||||||
{
|
{
|
||||||
|
assert($oHeader instanceof Header);
|
||||||
parent::append($oHeader, $bToTop);
|
parent::append($oHeader, $bToTop);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -32,9 +32,10 @@ class ParameterCollection extends \MailSo\Base\Collection
|
||||||
return new self($sRawParams);
|
return new self($sRawParams);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function append(Parameter $oHeader, bool $bToTop = false) : void
|
public function append($oParameter, bool $bToTop = false) : void
|
||||||
{
|
{
|
||||||
parent::append($oHeader, $bToTop);
|
assert($oParameter instanceof Parameter);
|
||||||
|
parent::append($oParameter, $bToTop);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function ParameterValueByName(string $sName) : string
|
public function ParameterValueByName(string $sName) : string
|
||||||
|
|
|
||||||
|
|
@ -27,8 +27,9 @@ class PartCollection extends \MailSo\Base\Collection
|
||||||
return new self();
|
return new self();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function append(Part $oPart, bool $bToTop = false) : void
|
public function append($oPart, bool $bToTop = false) : void
|
||||||
{
|
{
|
||||||
|
assert($oPart instanceof Part);
|
||||||
parent::append($oPart, $bToTop);
|
parent::append($oPart, $bToTop);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue