Total Complexity | 7 |
Total Lines | 97 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
13 | class PageView |
||
14 | { |
||
15 | /** |
||
16 | * @var int |
||
17 | * |
||
18 | * @ORM\Column(type="integer") |
||
19 | * @ORM\Id |
||
20 | * @ORM\GeneratedValue(strategy="AUTO") |
||
21 | */ |
||
22 | protected $id; |
||
23 | |||
24 | /** |
||
25 | * @var Session |
||
26 | * |
||
27 | * @ORM\ManyToOne(targetEntity="Session", inversedBy="pageViews") |
||
28 | */ |
||
29 | protected $session; |
||
30 | |||
31 | /** |
||
32 | * @var string |
||
33 | * |
||
34 | * @ORM\Column(type="string") |
||
35 | */ |
||
36 | protected $url; |
||
37 | |||
38 | /** |
||
39 | * @var \DateTime |
||
40 | * |
||
41 | * @ORM\Column(type="datetime") |
||
42 | * @Gedmo\Timestampable(on="create") |
||
43 | */ |
||
44 | protected $created; |
||
45 | |||
46 | /** |
||
47 | * @return int |
||
48 | */ |
||
49 | public function getId() |
||
50 | { |
||
51 | return $this->id; |
||
52 | } |
||
53 | |||
54 | /** |
||
55 | * @return string |
||
56 | */ |
||
57 | public function getUrl() |
||
60 | } |
||
61 | |||
62 | /** |
||
63 | * @param string $url |
||
64 | * |
||
65 | * @return $this |
||
66 | */ |
||
67 | public function setUrl($url) |
||
72 | } |
||
73 | |||
74 | /** |
||
75 | * @return \DateTime |
||
76 | */ |
||
77 | public function getCreated() |
||
78 | { |
||
79 | return $this->created; |
||
80 | } |
||
81 | |||
82 | /** |
||
83 | * @param \DateTime $created |
||
84 | * |
||
85 | * @return $this |
||
86 | */ |
||
87 | public function setCreated($created) |
||
92 | } |
||
93 | |||
94 | /** |
||
95 | * @return Session |
||
96 | */ |
||
97 | public function getSession() |
||
100 | } |
||
101 | |||
102 | /** |
||
103 | * @return $this |
||
104 | */ |
||
105 | public function setSession(Session $session) |
||
110 | } |
||
111 | } |
||
112 |