diff options
Diffstat (limited to 'lib/private/Mail/Attachment.php')
-rw-r--r-- | lib/private/Mail/Attachment.php | 23 |
1 files changed, 4 insertions, 19 deletions
diff --git a/lib/private/Mail/Attachment.php b/lib/private/Mail/Attachment.php index 5bfe0dd0522..7500d0b6c98 100644 --- a/lib/private/Mail/Attachment.php +++ b/lib/private/Mail/Attachment.php @@ -36,26 +36,15 @@ use Symfony\Component\Mime\Email; * @since 13.0.0 */ class Attachment implements IAttachment { - private ?string $body; - private ?string $name; - private ?string $contentType; - private ?string $path; - public function __construct( - ?string $body, - ?string $name, - ?string $contentType, - ?string $path = null + private ?string $body, + private ?string $name, + private ?string $contentType, + private ?string $path = null ) { - $this->body = $body; - $this->name = $name; - $this->contentType = $contentType; - $this->path = $path; } /** - * @param string $filename - * @return $this * @since 13.0.0 */ public function setFilename(string $filename): IAttachment { @@ -64,8 +53,6 @@ class Attachment implements IAttachment { } /** - * @param string $contentType - * @return $this * @since 13.0.0 */ public function setContentType(string $contentType): IAttachment { @@ -74,8 +61,6 @@ class Attachment implements IAttachment { } /** - * @param string $body - * @return $this * @since 13.0.0 */ public function setBody(string $body): IAttachment { |