Completed
Push — master ( c5110b...a167e6 )
by Valentyn
13:46
created

ReleaseDateNotificationDTO::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 7
ccs 0
cts 6
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 3
crap 2
1
<?php
2
3
declare(strict_types=1);
4
5
namespace App\Movies\DTO;
6
7
class ReleaseDateNotificationDTO
8
{
9
    public $movieId;
10
    public $movieTitle;
11
    public $releaseDate;
12
    public $countryName;
13
14
    public function __construct(int $movieId, string $movieTitle, string $countryName)
15
    {
16
        $this->movieId = $movieId;
17
        $this->movieTitle = $movieTitle;
18
        $this->releaseDate = date('Y-m-d');
19
        $this->countryName = $countryName;
20
    }
21
}
22