Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 3
0.00% covered (danger)
0.00%
0 / 3
CRAP
0.00% covered (danger)
0.00%
0 / 1
AccountSignupNotifyLogic
0.00% covered (danger)
0.00%
0 / 3
0.00% covered (danger)
0.00%
0 / 3
12
0.00% covered (danger)
0.00%
0 / 1
 __construct
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 validateImpl
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 executeImpl
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
1<?php
2
3declare(strict_types=1);
4
5namespace PeServer\App\Models\Domain\Page\Account;
6
7use PeServer\App\Models\AppConfiguration;
8use PeServer\App\Models\AppEmailInformation;
9use PeServer\App\Models\Data\EmailInformation;
10use PeServer\App\Models\Data\SessionAnonymous;
11use PeServer\App\Models\Domain\Page\PageLogicBase;
12use PeServer\App\Models\Domain\Page\SessionAnonymousTrait;
13use PeServer\App\Models\SessionKey;
14use PeServer\Core\Http\HttpStatus;
15use PeServer\Core\Mvc\LogicCallMode;
16use PeServer\Core\Mvc\LogicParameter;
17use PeServer\Core\Text;
18use PeServer\Core\Throws\HttpStatusException;
19
20class AccountSignupNotifyLogic extends PageLogicBase
21{
22    use SessionAnonymousTrait;
23
24    public function __construct(LogicParameter $parameter, private AppEmailInformation $appEmailInformation)
25    {
26        parent::__construct($parameter);
27    }
28
29    #region PageLogicBase
30
31    protected function validateImpl(LogicCallMode $callMode): void
32    {
33        $this->throwHttpStatusIfNotSignup1(HttpStatus::NotFound);
34    }
35
36    protected function executeImpl(LogicCallMode $callMode): void
37    {
38        $this->setValue('email', $this->appEmailInformation);
39    }
40
41    #endregion
42}