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 | * |
||
63 | * @return HttpTransaction |
||
64 | */ |
||
65 | public function setId(int $id): self |
||
71 | |||
72 | /** |
||
73 | * @return string |
||
74 | */ |
||
75 | public function getIp(): string |
||
79 | |||
80 | /** |
||
81 | * @param string $ip |
||
82 | * |
||
83 | * @return HttpTransaction |
||
84 | */ |
||
85 | public function setIp(string $ip): self |
||
91 | |||
92 | /** |
||
93 | * @return string |
||
94 | */ |
||
95 | public function getRequest(): string |
||
99 | |||
100 | /** |
||
101 | * @param $request |
||
102 | * |
||
103 | * @return HttpTransaction |
||
104 | */ |
||
105 | public function setRequest($request): self |
||
127 | |||
128 | /** |
||
129 | * @return string |
||
130 | */ |
||
131 | public function getResponse(): string |
||
135 | |||
136 | /** |
||
137 | * @param string $response |
||
138 | * |
||
139 | * @return HttpTransaction |
||
140 | */ |
||
141 | public function setResponse(string $response): self |
||
147 | } |
||
148 |