1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace PiouPiou\RibsAdminBundle\Entity; |
4
|
|
|
|
5
|
|
|
use Doctrine\ORM\Mapping as ORM; |
6
|
|
|
|
7
|
|
|
/** |
8
|
|
|
* UserLogs |
9
|
|
|
* |
10
|
|
|
* @ORM\Table(name="user_logs", indexes={@ORM\Index(name="fk_user_infos_user_idx", columns={"user_id"})}) |
11
|
|
|
* @ORM\Entity |
12
|
|
|
* @ORM\EntityListeners({"PiouPiou\RibsAdminBundle\EventListener\CreateUpdateAwareListener"}) |
13
|
|
|
*/ |
14
|
|
|
class UserLogs |
15
|
|
|
{ |
16
|
|
|
use CreatedUpdatedTrait; |
17
|
|
|
|
18
|
|
|
/** |
19
|
|
|
* @var integer |
20
|
|
|
* |
21
|
|
|
* @ORM\Column(name="id", type="integer", nullable=false, options={"unsigned"=true}) |
22
|
|
|
* @ORM\Id |
23
|
|
|
* @ORM\GeneratedValue(strategy="NONE") |
24
|
|
|
*/ |
25
|
|
|
private $id; |
26
|
|
|
|
27
|
|
|
/** |
28
|
|
|
* @var User |
29
|
|
|
* |
30
|
|
|
* @ORM\Id |
31
|
|
|
* @ORM\GeneratedValue(strategy="NONE") |
32
|
|
|
* @ORM\OneToOne(targetEntity="User") |
33
|
|
|
* @ORM\JoinColumns({ |
34
|
|
|
* @ORM\JoinColumn(name="user_id", referencedColumnName="id") |
35
|
|
|
* }) |
36
|
|
|
*/ |
37
|
|
|
private $user; |
38
|
|
|
|
39
|
|
|
/** |
40
|
|
|
* @var string |
41
|
|
|
* |
42
|
|
|
* @ORM\Column(name="method", type="string", length=255, nullable=false) |
43
|
|
|
*/ |
44
|
|
|
private $method; |
45
|
|
|
|
46
|
|
|
/** |
47
|
|
|
* @var string |
48
|
|
|
* |
49
|
|
|
* @ORM\Column(name="url", type="string", length=255, nullable=false) |
50
|
|
|
*/ |
51
|
|
|
private $url; |
52
|
|
|
|
53
|
|
|
/** |
54
|
|
|
* @var string |
55
|
|
|
* |
56
|
|
|
* @ORM\Column(name="equest_parameters", type="text", nullable=true) |
57
|
|
|
*/ |
58
|
|
|
private $request_parameters; |
59
|
|
|
|
60
|
|
|
/** |
61
|
|
|
* @return int |
62
|
|
|
*/ |
63
|
|
|
public function getId() |
64
|
|
|
{ |
65
|
|
|
return $this->id; |
66
|
|
|
} |
67
|
|
|
|
68
|
|
|
/** |
69
|
|
|
* @param int $id |
70
|
|
|
*/ |
71
|
|
|
public function setId($id) |
72
|
|
|
{ |
73
|
|
|
$this->id = $id; |
74
|
|
|
} |
75
|
|
|
|
76
|
|
|
/** |
77
|
|
|
* @return User |
78
|
|
|
*/ |
79
|
|
|
public function getUser(): User |
80
|
|
|
{ |
81
|
|
|
return $this->user; |
82
|
|
|
} |
83
|
|
|
|
84
|
|
|
/** |
85
|
|
|
* @param \User $user |
86
|
|
|
*/ |
87
|
|
|
public function setUser($user) |
88
|
|
|
{ |
89
|
|
|
$this->user = $user; |
90
|
|
|
} |
91
|
|
|
|
92
|
|
|
/** |
93
|
|
|
* @return string |
94
|
|
|
*/ |
95
|
|
|
public function getMethod(): string |
96
|
|
|
{ |
97
|
|
|
return $this->method; |
98
|
|
|
} |
99
|
|
|
|
100
|
|
|
/** |
101
|
|
|
* @param string $method |
102
|
|
|
* @return UserLogs |
103
|
|
|
*/ |
104
|
|
|
public function setMethod(string $method): UserLogs |
105
|
|
|
{ |
106
|
|
|
$this->method = $method; |
107
|
|
|
|
108
|
|
|
return $this; |
109
|
|
|
} |
110
|
|
|
|
111
|
|
|
/** |
112
|
|
|
* @return string |
113
|
|
|
*/ |
114
|
|
|
public function getUrl(): string |
115
|
|
|
{ |
116
|
|
|
return $this->url; |
117
|
|
|
} |
118
|
|
|
|
119
|
|
|
/** |
120
|
|
|
* @param string $url |
121
|
|
|
* @return UserLogs |
122
|
|
|
*/ |
123
|
|
|
public function setUrl(string $url): UserLogs |
124
|
|
|
{ |
125
|
|
|
$this->url = $url; |
126
|
|
|
|
127
|
|
|
return $this; |
128
|
|
|
} |
129
|
|
|
|
130
|
|
|
/** |
131
|
|
|
* @return string |
132
|
|
|
*/ |
133
|
|
|
public function getRequestParameters(): string |
134
|
|
|
{ |
135
|
|
|
return $this->request_parameters; |
136
|
|
|
} |
137
|
|
|
|
138
|
|
|
/** |
139
|
|
|
* @param string $request_parameters |
140
|
|
|
* @return UserLogs |
141
|
|
|
*/ |
142
|
|
|
public function setRequestParameters(string $request_parameters): UserLogs |
143
|
|
|
{ |
144
|
|
|
$this->request_parameters = $request_parameters; |
145
|
|
|
|
146
|
|
|
return $this; |
147
|
|
|
} |
148
|
|
|
} |
149
|
|
|
|
150
|
|
|
|