19declare(strict_types=1);
 
   33    public function adjust(
string $firstMail, 
string $secondMail, 
bool $persist = 
true): void
 
   39        $hasFirstEmail = $firstMail !== 
'';
 
   40        $hasSecondEmail = $secondMail !== 
'';
 
   42        if (!$hasFirstEmail && !$hasSecondEmail) {
 
   45                $this->mailOptions->updateOptions();
 
   53                $this->mailOptions->updateOptions();
 
   61                $this->mailOptions->updateOptions();
 
Class ilMailOptions this class handles user mails.
 
__construct(ilMailOptions $mailOptions)
 
adjust(string $firstMail, string $secondMail, bool $persist=true)
 
ilMailOptions $mailOptions