-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathOptions.php
60 lines (52 loc) · 1.54 KB
/
Options.php
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
<?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/options
*/
class Options extends ClassStructure
{
/** @var bool */
public $rememberSession;
/** @var bool */
public $allowNotifications;
/**
* @param Properties|static $properties
* @param Schema $ownerSchema
*/
public static function setUpProperties($properties, Schema $ownerSchema)
{
$properties->rememberSession = Schema::boolean();
$properties->allowNotifications = Schema::boolean();
$ownerSchema->type = Schema::OBJECT;
$ownerSchema->setFromRef('#/definitions/options');
}
/**
* @param bool $rememberSession
* @return $this
* @codeCoverageIgnoreStart
*/
public function setRememberSession($rememberSession)
{
$this->rememberSession = $rememberSession;
return $this;
}
/** @codeCoverageIgnoreEnd */
/**
* @param bool $allowNotifications
* @return $this
* @codeCoverageIgnoreStart
*/
public function setAllowNotifications($allowNotifications)
{
$this->allowNotifications = $allowNotifications;
return $this;
}
/** @codeCoverageIgnoreEnd */
}