1 | <?php |
||
14 | class Schema extends AbstractDocumentableObject implements IDefinition |
||
15 | { |
||
16 | |||
17 | private static $classTypes = array( |
||
18 | 'integer' => 'Integer', |
||
19 | 'int' => 'Integer', |
||
20 | 'int32' => 'Integer', |
||
21 | 'int64' => 'Integer', |
||
22 | 'long' => 'Integer', |
||
23 | 'float' => 'Number', |
||
24 | 'double' => 'Number', |
||
25 | 'string' => 'String', |
||
26 | 'uuid' => 'StringUuid', |
||
27 | 'byte' => 'String', |
||
28 | 'binary' => 'String', |
||
29 | 'password' => 'String', |
||
30 | 'enum' => 'String', |
||
31 | 'boolean' => 'Boolean', |
||
32 | 'bool' => 'Boolean', |
||
33 | 'array' => 'Array', |
||
34 | 'csv' => 'Array', |
||
35 | 'ssv' => 'Array', |
||
36 | 'tsv' => 'Array', |
||
37 | 'pipes' => 'Array', |
||
38 | 'date' => 'Date', |
||
39 | 'datetime' => 'Date', |
||
40 | 'date-time' => 'Date', |
||
41 | 'object' => 'Object', |
||
42 | ); |
||
43 | |||
44 | /** |
||
45 | * @var string |
||
46 | */ |
||
47 | private $description = null; |
||
48 | |||
49 | /** |
||
50 | * @var string |
||
51 | */ |
||
52 | private $title = null; |
||
53 | |||
54 | /** |
||
55 | * @var bool |
||
56 | */ |
||
57 | private $readOnly = null; |
||
58 | |||
59 | /** |
||
60 | * @var \SwaggerGen\Swagger\Type\AbstractType |
||
61 | */ |
||
62 | private $type; |
||
63 | |||
64 | public function __construct(AbstractObject $parent, $definition = 'object', $description = null) |
||
89 | |||
90 | /** |
||
91 | * @param string $command |
||
92 | * @param string $data |
||
93 | * @return \SwaggerGen\Swagger\AbstractObject|boolean |
||
94 | */ |
||
95 | public function handleCommand($command, $data = null) |
||
115 | |||
116 | public function toArray() |
||
124 | |||
125 | public function __toString() |
||
129 | |||
130 | public function setReadOnly() |
||
134 | |||
135 | } |
||
136 |