PersonalDataExportCreatedMail   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 2
dl 0
loc 25
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A build() 0 4 1
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