-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRequestLogBodyTrait.php
More file actions
124 lines (97 loc) · 2.35 KB
/
Copy pathRequestLogBodyTrait.php
File metadata and controls
124 lines (97 loc) · 2.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
<?php
declare(strict_types=1);
namespace ADT\FancyAdmin\Model\Entities;
use Doctrine\ORM\Mapping as ORM;
use Doctrine\ORM\Mapping\Column;
trait RequestLogBodyTrait
{
#[ORM\OneToOne(targetEntity: 'RequestLog')]
#[ORM\JoinColumn(nullable: false, onDelete: 'CASCADE')]
protected RequestLog $requestLog;
#[Column(type: 'json', nullable: true)]
protected ?array $headers = null;
#[Column(type: 'json', nullable: true)]
protected ?array $params = null;
#[Column(type: 'text', nullable: true)]
protected ?string $postData = null;
#[Column(type: 'json', nullable: true)]
protected ?array $rawDataJson = null;
#[Column(type: 'text', nullable: true)]
protected ?string $rawDataText = null;
#[Column(type: 'json', nullable: true)]
protected ?array $responseJson = null;
#[Column(type: 'text', nullable: true)]
protected ?string $responseText = null;
public function getRequestLog(): RequestLog
{
return $this->requestLog;
}
public function setRequestLog(RequestLog $requestLog): static
{
$this->requestLog = $requestLog;
return $this;
}
public function getHeaders(): ?array
{
return $this->headers;
}
public function setHeaders(?array $headers): static
{
$this->headers = $headers;
return $this;
}
public function getParams(): ?array
{
return $this->params;
}
public function setParams(?array $params): static
{
$this->params = $params;
return $this;
}
public function getPostData(): ?string
{
return $this->postData;
}
public function setPostData(?string $postData): static
{
$this->postData = $postData;
return $this;
}
public function getRawDataJson(): ?array
{
return $this->rawDataJson;
}
public function setRawDataJson(?array $rawDataJson): static
{
$this->rawDataJson = $rawDataJson;
return $this;
}
public function getRawDataText(): ?string
{
return $this->rawDataText;
}
public function setRawDataText(?string $rawDataText): static
{
$this->rawDataText = $rawDataText;
return $this;
}
public function getResponseJson(): ?array
{
return $this->responseJson;
}
public function setResponseJson(?array $responseJson): static
{
$this->responseJson = $responseJson;
return $this;
}
public function getResponseText(): ?string
{
return $this->responseText;
}
public function setResponseText(?string $responseText): static
{
$this->responseText = $responseText;
return $this;
}
}