Total Complexity | 3 |
Total Lines | 37 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
6 | class ReplyReview |
||
7 | { |
||
8 | /** |
||
9 | * @var \DateTimeInterface |
||
10 | */ |
||
11 | private $date; |
||
12 | /** |
||
13 | * @var string |
||
14 | */ |
||
15 | private $text; |
||
16 | |||
17 | /** |
||
18 | * ReplyReview constructor. |
||
19 | * |
||
20 | * @param \DateTimeInterface $date |
||
21 | * @param string $text |
||
22 | */ |
||
23 | public function __construct(\DateTimeInterface $date, string $text) |
||
24 | { |
||
25 | $this->date = $date; |
||
26 | $this->text = $text; |
||
27 | } |
||
28 | |||
29 | /** |
||
30 | * @return \DateTimeInterface |
||
31 | */ |
||
32 | public function getDate(): \DateTimeInterface |
||
33 | { |
||
34 | return $this->date; |
||
35 | } |
||
36 | |||
37 | /** |
||
38 | * @return string |
||
39 | */ |
||
40 | public function getText(): string |
||
43 | } |
||
44 | } |
||
45 |