1 | <?php |
||
14 | class HttpTransaction |
||
15 | { |
||
16 | use ORMBehaviors\Timestampable\Timestampable; |
||
17 | |||
18 | /** |
||
19 | * @var int |
||
20 | * |
||
21 | * @ORM\Id |
||
22 | * @ORM\Column(type="integer") |
||
23 | * @ORM\GeneratedValue(strategy="AUTO") |
||
24 | */ |
||
25 | protected $id; |
||
26 | |||
27 | /** |
||
28 | * @var string |
||
29 | * |
||
30 | * @ORM\Column(type="string", nullable=true) |
||
31 | */ |
||
32 | protected $ip; |
||
33 | |||
34 | /** |
||
35 | * @var string |
||
36 | * |
||
37 | * @Assert\NotBlank() |
||
38 | * |
||
39 | * @ORM\Column(type="text") |
||
40 | */ |
||
41 | protected $request; |
||
42 | |||
43 | /** |
||
44 | * @var string |
||
45 | * |
||
46 | * @Assert\NotBlank() |
||
47 | * |
||
48 | * @ORM\Column(type="text") |
||
49 | */ |
||
50 | protected $response; |
||
51 | |||
52 | /** |
||
53 | * @return int |
||
54 | */ |
||
55 | public function getId(): int |
||
59 | |||
60 | /** |
||
61 | * @param int $id |
||
62 | * @return HttpTransaction |
||
63 | */ |
||
64 | public function setId(int $id) : HttpTransaction |
||
69 | |||
70 | /** |
||
71 | * @return string |
||
72 | */ |
||
73 | public function getIp(): string |
||
77 | |||
78 | /** |
||
79 | * @param string $ip |
||
80 | * @return HttpTransaction |
||
81 | */ |
||
82 | public function setIp(string $ip): HttpTransaction |
||
88 | |||
89 | /** |
||
90 | * @return string |
||
91 | */ |
||
92 | public function getRequest(): string |
||
96 | |||
97 | /** |
||
98 | * @param $request |
||
99 | * @return HttpTransaction |
||
100 | */ |
||
101 | public function setRequest($request): HttpTransaction |
||
123 | |||
124 | /** |
||
125 | * @return string |
||
126 | */ |
||
127 | public function getResponse(): string |
||
131 | |||
132 | /** |
||
133 | * @param string $response |
||
134 | * @return HttpTransaction |
||
135 | */ |
||
136 | public function setResponse(string $response): HttpTransaction |
||
142 | } |
||
143 |