forked from swaggest/php-code-builder
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathInfo.php
More file actions
76 lines (66 loc) · 1.63 KB
/
Info.php
File metadata and controls
76 lines (66 loc) · 1.63 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
<?php
/**
* @file ATTENTION!!! The code below was carefully crafted by a mean machine.
* Please consider to NOT put any emotional human-generated modifications as the splendid AI will throw them away with no mercy.
*/
namespace Swaggest\PhpCodeBuilder\Tests\Tmp\Example;
use Swaggest\JsonSchema\Constraint\Properties;
use Swaggest\JsonSchema\Schema;
use Swaggest\JsonSchema\Structure\ClassStructure;
/**
* Built from #/definitions/info
*/
class Info extends ClassStructure {
/** @var string */
public $lastName;
/** @var string */
public $birthDate;
/** @var Options */
public $options;
/**
* @param Properties|static $properties
* @param Schema $ownerSchema
*/
public static function setUpProperties($properties, Schema $ownerSchema)
{
$properties->lastName = Schema::string();
$properties->birthDate = Schema::string();
$properties->birthDate->format = "date";
$properties->options = Options::schema();
$ownerSchema->type = 'object';
$ownerSchema->setFromRef('#/definitions/info');
}
/**
* @param string $lastName
* @return $this
* @codeCoverageIgnoreStart
*/
public function setLastName($lastName)
{
$this->lastName = $lastName;
return $this;
}
/** @codeCoverageIgnoreEnd */
/**
* @param string $birthDate
* @return $this
* @codeCoverageIgnoreStart
*/
public function setBirthDate($birthDate)
{
$this->birthDate = $birthDate;
return $this;
}
/** @codeCoverageIgnoreEnd */
/**
* @param Options $options
* @return $this
* @codeCoverageIgnoreStart
*/
public function setOptions(Options $options)
{
$this->options = $options;
return $this;
}
/** @codeCoverageIgnoreEnd */
}