Document
Less than 1 minute
Document
An assembled OpenAPI 3.2 document, ready to be serialized.
class DocumentProperties
document
the assembled document as a plain array, matching the OpenAPI 3.2 root Object shape (openapi, info, servers, paths, components, ...)
private array $documentType: array
Methods
__construct
public __construct(array $document): voidParameters
| Parameter | Type | Description |
|---|---|---|
$document | array | the assembled document as a plain array, matching the OpenAPI 3.2 root Object shape (openapi, info, servers, paths, components, ...) |
toArray
public toArray(): arrayReturns: array
toJson
public toJson(int|JSON_UNESCAPED_SLASHES $flags = 'JSON_PRETTY_PRINT'): stringReturns: string
Parameters
| Parameter | Type | Description |
|---|---|---|
$flags | int | Hazaar\OpenApi\JSON_UNESCAPED_SLASHES |
toYaml
public toYaml(): stringReturns: string
Generated by Hazaar API Doc Generator on Fri, 04 Sep 2026 23:32:16 +0000