2017-10-18 09:39:22 -04:00
|
|
|
<?php
|
2019-12-03 13:57:53 -05:00
|
|
|
|
2018-03-01 15:15:39 -05:00
|
|
|
declare(strict_types=1);
|
2019-12-03 13:57:53 -05:00
|
|
|
|
2017-10-18 09:39:22 -04:00
|
|
|
/**
|
2024-05-23 03:26:56 -04:00
|
|
|
* SPDX-FileCopyrightText: 2017 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
2017-10-18 09:39:22 -04:00
|
|
|
*/
|
|
|
|
|
namespace OCP\Mail;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Interface IAttachment
|
|
|
|
|
*
|
|
|
|
|
* @since 13.0.0
|
|
|
|
|
*/
|
|
|
|
|
interface IAttachment {
|
|
|
|
|
/**
|
|
|
|
|
* @param string $filename
|
2018-03-01 15:15:39 -05:00
|
|
|
* @return IAttachment
|
2017-10-18 09:39:22 -04:00
|
|
|
* @since 13.0.0
|
|
|
|
|
*/
|
2018-03-01 15:15:39 -05:00
|
|
|
public function setFilename(string $filename): IAttachment;
|
2017-10-18 09:39:22 -04:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @param string $contentType
|
2018-03-01 15:15:39 -05:00
|
|
|
* @return IAttachment
|
2017-10-18 09:39:22 -04:00
|
|
|
* @since 13.0.0
|
|
|
|
|
*/
|
2018-03-01 15:15:39 -05:00
|
|
|
public function setContentType(string $contentType): IAttachment;
|
2017-10-18 09:39:22 -04:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @param string $body
|
2018-03-01 15:15:39 -05:00
|
|
|
* @return IAttachment
|
2017-10-18 09:39:22 -04:00
|
|
|
* @since 13.0.0
|
|
|
|
|
*/
|
2018-03-01 15:15:39 -05:00
|
|
|
public function setBody(string $body): IAttachment;
|
2017-10-18 09:39:22 -04:00
|
|
|
}
|