-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathExample.php
More file actions
101 lines (78 loc) · 2.12 KB
/
Copy pathExample.php
File metadata and controls
101 lines (78 loc) · 2.12 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
<?php
/*
* This file is part of the API Platform project.
*
* (c) Kévin Dunglas <dunglas@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace ApiPlatform\OpenApi\Model;
final class Example
{
use ExtensionTrait;
public function __construct(private ?string $summary = null, private ?string $description = null, private mixed $value = null, private ?string $externalValue = null, private mixed $dataValue = null, private ?string $serializedValue = null)
{
}
public function getSummary(): ?string
{
return $this->summary;
}
public function withSummary(string $summary): self
{
$clone = clone $this;
$clone->summary = $summary;
return $clone;
}
public function getDescription(): ?string
{
return $this->description;
}
public function withDescription(string $description): self
{
$clone = clone $this;
$clone->description = $description;
return $clone;
}
public function getValue(): mixed
{
return $this->value;
}
public function withValue(mixed $value): self
{
$clone = clone $this;
$clone->value = $value;
return $clone;
}
public function getExternalValue(): ?string
{
return $this->externalValue;
}
public function withExternalValue(string $externalValue): self
{
$clone = clone $this;
$clone->externalValue = $externalValue;
return $clone;
}
public function getDataValue(): mixed
{
return $this->dataValue;
}
public function withDataValue(mixed $dataValue): self
{
$clone = clone $this;
$clone->dataValue = $dataValue;
return $clone;
}
public function getSerializedValue(): ?string
{
return $this->serializedValue;
}
public function withSerializedValue(string $serializedValue): self
{
$clone = clone $this;
$clone->serializedValue = $serializedValue;
return $clone;
}
}