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

ReplyReview   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 37
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 3
eloc 7
dl 0
loc 37
rs 10
c 0
b 0
f 0

3 Methods

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