MessageLog::getLog()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
c 0
b 0
f 0
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
/*
4
 * This file is part of HeriJobQueueBundle.
5
 *
6
 * (c) Alexandre Mogère
7
 *
8
 * This source file is subject to the MIT license that is bundled
9
 * with this source code in the file LICENSE.
10
 */
11
12
namespace Heri\Bundle\JobQueueBundle\Entity;
13
14
use Doctrine\ORM\Mapping as ORM;
15
16
/**
17
 * Heri\Bundle\JobQueueBundle\Entity\MessageLog.
18
 *
19
 * @ORM\Table(name="queue_log")
20
 * @ORM\Entity
21
 */
22
class MessageLog
23
{
24
    /**
25
     * @var int
26
     *
27
     * @ORM\Column(name="id", type="integer", nullable=false)
28
     * @ORM\Id
29
     * @ORM\GeneratedValue(strategy="AUTO")
30
     */
31
    private $id;
32
33
    /**
34
     * @var Message
35
     *
36
     * @ORM\ManyToOne(targetEntity="Message", cascade="remove")
37
     * @ORM\JoinColumn(name="message_id", referencedColumnName="id", nullable=true)
38
     */
39
    private $messageId;
40
41
    /**
42
     * @var datetime
43
     *
44
     * @ORM\Column(name="date_log", type="datetime", nullable=false)
45
     */
46
    private $dateLog;
47
48
    /**
49
     * @var text
50
     *
51
     * @ORM\Column(name="log", type="text", nullable=false)
52
     */
53
    private $log;
54
55
    /**
56
     * Get id.
57
     *
58
     * @return int
59
     */
60
    public function getId()
61
    {
62
        return $this->id;
63
    }
64
65
    /**
66
     * Set messageId.
67
     *
68
     * @param Message $messageId
69
     */
70
    public function setMessageId($messageId)
71
    {
72
        $this->messageId = $messageId;
73
    }
74
75
    /**
76
     * Get messageId.
77
     *
78
     * @return Message
79
     */
80
    public function getMessageId()
81
    {
82
        return $this->messageId;
83
    }
84
85
    /**
86
     * Set dateLog.
87
     *
88
     * @param \DateTime $dateLog
89
     */
90
    public function setDateLog($dateLog)
91
    {
92
        $this->dateLog = $dateLog;
0 ignored issues
show
Documentation Bug introduced by
It seems like $dateLog of type object<DateTime> is incompatible with the declared type object<Heri\Bundle\JobQu...Bundle\Entity\datetime> of property $dateLog.

Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.

Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..

Loading history...
93
    }
94
95
    /**
96
     * Get dateLog.
97
     *
98
     * @return datetime
99
     */
100
    public function getDateLog()
101
    {
102
        return $this->dateLog;
103
    }
104
105
    /**
106
     * Set log.
107
     *
108
     * @param text $log
109
     */
110
    public function setLog($log)
111
    {
112
        $this->log = $log;
113
    }
114
115
    /**
116
     * Get log.
117
     *
118
     * @return text
119
     */
120
    public function getLog()
121
    {
122
        return $this->log;
123
    }
124
}
125