Completed
Pull Request — master (#41)
by Leszek
04:36
created

BackendImpression::getDatetime()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 3
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace WMDE\Fundraising\Entities;
4
5
use Doctrine\ORM\Mapping as ORM;
6
7
/**
8
 * @since 2.0
9
 *
10
 * @ORM\Table(name="backend_impressions", indexes={@ORM\Index(name="idx_banner_id", columns={"banner_id"}), @ORM\Index(name="idx_banner_id_datetime", columns={"banner_id", "datetime"})})
11
 * @ORM\Entity
12
 */
13
class BackendImpression {
14
	/**
15
	 * @var integer
16
	 *
17
	 * @ORM\Column(name="banner_id", type="integer",  options={"unsigned"=true}, options={"default":0}, nullable=false)
18
	 */
19
	private $bannerId = 0;
20
21
	/**
22
	 * @var \DateTime
23
	 *
24
	 * @ORM\Column(name="datetime", type="datetime", options={"default":"1970-01-01 00:00:00"}, nullable=false)
25
	 */
26
	private $datetime = '1970-01-01 00:00:00';
27
28
	/**
29
	 * @var integer
30
	 *
31
	 * @ORM\Column(name="imp_count", type="integer",  options={"unsigned"=true}, options={"default":0}, nullable=false)
32
	 */
33
	private $impCount = 0;
34
35
	/**
36
	 * @var integer
37
	 *
38
	 * @ORM\Column(name="imp_id", type="integer", options={"unsigned"=true})
39
	 * @ORM\Id
40
	 * @ORM\GeneratedValue(strategy="IDENTITY")
41
	 */
42
	private $impId;
43
44
45
	/**
46
	 * Set bannerId
47
	 *
48
	 * @param integer $bannerId
49
	 * @return BackendImpression
50
	 */
51
	public function setBannerId( $bannerId ) {
52
		$this->bannerId = $bannerId;
53
54
		return $this;
55
	}
56
57
	/**
58
	 * Get bannerId
59
	 *
60
	 * @return integer
61
	 */
62
	public function getBannerId() {
63
		return $this->bannerId;
64
	}
65
66
	/**
67
	 * Set datetime
68
	 *
69
	 * @param \DateTime $datetime
70
	 * @return BackendImpression
71
	 */
72
	public function setDatetime( $datetime ) {
73
		$this->datetime = $datetime;
74
75
		return $this;
76
	}
77
78
	/**
79
	 * Get datetime
80
	 *
81
	 * @return \DateTime
82
	 */
83
	public function getDatetime() {
84
		return $this->datetime;
85
	}
86
87
	/**
88
	 * Set impCount
89
	 *
90
	 * @param integer $impCount
91
	 * @return BackendImpression
92
	 */
93
	public function setImpCount( $impCount ) {
94
		$this->impCount = $impCount;
95
96
		return $this;
97
	}
98
99
	/**
100
	 * Get impCount
101
	 *
102
	 * @return integer
103
	 */
104
	public function getImpCount() {
105
		return $this->impCount;
106
	}
107
108
	/**
109
	 * Get impId
110
	 *
111
	 * @return integer
112
	 */
113
	public function getImpId() {
114
		return $this->impId;
115
	}
116
}
117