PersonalDataExportCreatedMail::build()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace Spatie\PersonalDataExport\Mail;
4
5
use Illuminate\Mail\Mailable;
6
7
class PersonalDataExportCreatedMail extends Mailable
8
{
9
    /** @var string */
10
    public $zipFilename;
11
12
    /** @var \Illuminate\Support\Carbon */
13
    public $deletionDatetime;
14
15
    /**
16
     * PersonalDataExportCreatedMail constructor.
17
     *
18
     * @param string $zipFilename
19
     */
20
    public function __construct(string $zipFilename)
21
    {
22
        $this->zipFilename = $zipFilename;
23
24
        $this->deletionDatetime = now()->addDays(config('personal-data-export.delete_after_days'));
25
    }
26
27
    public function build()
28
    {
29
        return $this->markdown('personal-data-export::mail');
30
    }
31
}
32