InvalidTokenResendTimeException::setTime()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
3
namespace DoS\UserBundle\Confirmation\Exception;
4
5
class InvalidTokenResendTimeException extends ConfirmationException
6
{
7
    protected $message = 'Invalid token resend time.';
8
9
    /**
10
     * @var \DateTime
11
     */
12
    protected $time;
13
14
    /**
15
     * @var string
16
     */
17
    protected $timeAware;
18
19
    /**
20
     * @return \DateTime
21
     */
22
    public function getTime()
23
    {
24
        return $this->time;
25
    }
26
27
    /**
28
     * @param \DateTime $time
29
     */
30
    public function setTime($time)
31
    {
32
        $this->time = $time;
33
    }
34
35
    /**
36
     * @return string
37
     */
38
    public function getTimeAware()
39
    {
40
        return $this->timeAware;
41
    }
42
43
    /**
44
     * @param string $timeAware
45
     */
46
    public function setTimeAware($timeAware)
47
    {
48
        $this->timeAware = $timeAware;
49
    }
50
}
51