MailConfigChecker/Application/Model/SpfResult.php

43 lines
939 B
PHP
Raw Permalink Normal View History

2023-12-11 15:48:31 +01:00
<?php
/**
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* https://www.d3data.de
*
* @copyright (C) D3 Data Development (Inh. Thomas Dartsch)
* @author D3 Data Development - Daniel Seifert <info@shopmodule.com>
* @link https://www.oxidmodule.com
*/
declare(strict_types=1);
namespace D3\MailConfigChecker\Application\Model;
2023-12-12 11:50:41 +01:00
2023-12-11 15:48:31 +01:00
class SpfResult
{
2024-06-04 14:20:20 +02:00
public const SET = 'set';
2023-12-12 11:50:41 +01:00
public const MISSING = 'missing';
public const ERROR = 'error';
2023-12-11 15:48:31 +01:00
2024-06-04 14:37:41 +02:00
protected string $status;
protected ?string $record;
2023-12-11 15:48:31 +01:00
public function __construct(string $status, ?string $record = null)
{
$this->status = $status;
$this->record = $record;
}
2024-06-04 14:37:41 +02:00
public function getStatus(): string
2023-12-11 15:48:31 +01:00
{
return $this->status;
}
2024-06-04 14:37:41 +02:00
public function getRecord(): ?string
2023-12-11 15:48:31 +01:00
{
return $this->record;
}
2023-12-12 11:50:41 +01:00
}