| Total Complexity | 3 |
| Total Lines | 32 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 18 | class Schema |
||
| 19 | { |
||
| 20 | private $nullable; |
||
| 21 | private $discriminator; |
||
| 22 | private $readOnly; |
||
| 23 | private $writeOnly; |
||
| 24 | private $xml; |
||
| 25 | private $externalDocs; |
||
| 26 | private $example; |
||
| 27 | private $deprecated; |
||
| 28 | |||
| 29 | public function __construct(?bool $nullable = false, $discriminator = null, bool $readOnly = false, bool $writeOnly = false, string $xml = null, $externalDocs = null, $example = null, bool $deprecated = false) |
||
| 30 | { |
||
| 31 | $this->nullable = $nullable; |
||
| 32 | $this->discriminator = $discriminator; |
||
| 33 | $this->readOnly = $readOnly; |
||
| 34 | $this->writeOnly = $writeOnly; |
||
| 35 | $this->xml = $xml; |
||
| 36 | $this->externalDocs = $externalDocs; |
||
| 37 | $this->example = $example; |
||
| 38 | $this->deprecated = $deprecated; |
||
| 39 | $this->schema = new JsonSchema(); |
||
|
|
|||
| 40 | } |
||
| 41 | |||
| 42 | public function setDefinitions(array $definitions) |
||
| 45 | } |
||
| 46 | |||
| 47 | public function getDefinitions(): \ArrayObject |
||
| 50 | } |
||
| 51 | } |
||
| 52 |