Files
server/shared/lib/Mail/Service/ServiceMutableInterface.php
Sebastian Krupinski 1d706de663
All checks were successful
JS Unit Tests / test (pull_request) Successful in 17s
Build Test / build (pull_request) Successful in 20s
PHP Unit Tests / test (pull_request) Successful in 48s
feat: improve mail resource interface
Signed-off-by: Sebastian Krupinski <krupinski01@gmail.com>
2026-03-06 22:50:08 -05:00

48 lines
1.1 KiB
PHP

<?php
declare(strict_types=1);
/**
* SPDX-FileCopyrightText: Sebastian Krupinski <krupinski01@gmail.com>
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
namespace KTXF\Mail\Service;
use KTXF\Mail\Object\AddressInterface;
use KTXF\Resource\Provider\ResourceServiceMutateInterface;
/**
* Mail Service Mutable Interface
*
* Extends base service interface with setter methods for mutable properties.
* Used for service configuration and updates.
*
* @since 2025.05.01
*/
interface ServiceMutableInterface extends ServiceBaseInterface, ResourceServiceMutateInterface {
/**
* Sets the primary mailing address for this service
*
* @since 2025.05.01
*
* @param AddressInterface $value Primary email address
*
* @return static
*/
public function setPrimaryAddress(AddressInterface $value): static;
/**
* Sets the secondary mailing addresses (aliases) for this service
*
* @since 2025.05.01
*
* @param array<int,AddressInterface> $value Array of secondary addresses
*
* @return static
*/
public function setSecondaryAddresses(array $value): static;
}