OpenXE/classes/Components/Mailer/Config/MailerConfigInterface.php
2021-05-21 08:49:41 +02:00

31 lines
580 B
PHP

<?php
declare(strict_types=1);
namespace Xentral\Components\Mailer\Config;
use Xentral\Components\Mailer\Exception\MailerConfigException;
interface MailerConfigInterface
{
/**
* @param string $key
* @param mixed $default
*
* @return mixed|null @todo: try to use type annotation
*/
public function getConfigValue(string $key, $default = null);
/**
* @throws MailerConfigException
*
* @return void
*/
public function validate(): void;
/**
* @return array
*/
public function getValues(): array;
}