Completed
Branch develop (45165d)
by Alexey
04:09
created

ReplyReview::getDate()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
declare(strict_types=1);
3
4
namespace Nelexa\GPlay\Model;
5
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
41
    {
42
        return $this->text;
43
    }
44
}
45