-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathRequestDoc.php
More file actions
72 lines (57 loc) · 1.46 KB
/
RequestDoc.php
File metadata and controls
72 lines (57 loc) · 1.46 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
<?php
declare(strict_types=1);
namespace Valantic\PimcoreApiDocumentationBundle\Model\Doc\Request;
use Valantic\PimcoreApiDocumentationBundle\Model\Component\ComponentSchemaDoc;
class RequestDoc
{
/** @var ComponentSchemaDoc[] */
private array $componentSchemaDocs = [];
/** @var ParameterDoc[] */
private array $parameters = [];
/** @var mixed[] */
private array $requestBody = [];
/**
* @return ComponentSchemaDoc[]
*/
public function getComponentSchemaDocs(): array
{
return $this->componentSchemaDocs;
}
public function addComponentSchemaDoc(?ComponentSchemaDoc $componentSchemaDoc): self
{
if ($componentSchemaDoc !== null) {
$this->componentSchemaDocs[$componentSchemaDoc->getName()] = $componentSchemaDoc;
}
return $this;
}
/**
* @return ParameterDoc[]
*/
public function getParameters(): array
{
return $this->parameters;
}
/**
* @param ParameterDoc[] $parameters
*/
public function setParameters(array $parameters): self
{
$this->parameters = $parameters;
return $this;
}
/**
* @return mixed[]
*/
public function getRequestBody(): array
{
return $this->requestBody;
}
/**
* @param mixed[] $requestBody
*/
public function setRequestBody(array $requestBody): self
{
$this->requestBody = $requestBody;
return $this;
}
}