Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 2
0.00% covered (danger)
0.00%
0 / 1
CRAP
0.00% covered (danger)
0.00%
0 / 1
AppEmailInformation
0.00% covered (danger)
0.00%
0 / 2
0.00% covered (danger)
0.00%
0 / 1
2
0.00% covered (danger)
0.00%
0 / 1
 __construct
0.00% covered (danger)
0.00%
0 / 2
0.00% covered (danger)
0.00%
0 / 1
2
1<?php
2
3declare(strict_types=1);
4
5namespace PeServer\App\Models;
6
7use PeServer\App\Models\AppConfiguration;
8use PeServer\Core\Text;
9
10readonly class AppEmailInformation
11{
12    #region variable
13
14    public string $address;
15    public string $domain;
16
17    #endregion
18
19    public function __construct(AppConfiguration $config)
20    {
21        $this->address = $config->setting->config->address->fromEmail->address;
22        $this->domain = Text::split($this->address, '@')[1];
23    }
24}