ApiOpenStudio PHPDoc

OpenApiParent20 extends OpenApiParentAbstract
in package

Class to generate default parent elements for OpenApi v2.0.

Table of Contents

$definition  : stdClass
$settings  : Config
$version  : string
OpenApi doc version.
__construct()  : mixed
export()  : stdClass|string
Export the definition.
getAccount()  : string
Get the account name from the schema
getApplication()  : string
Get the application name from the schema
import()  : mixed
Import an existing definition.
setAccount()  : mixed
Set the account name.
setApplication()  : mixed
Set the application name.
setDefault()  : mixed
Sets the default OpenApi parent schema fragments to define the resources in the doc (application).
setDomain()  : mixed
Set the domain.
getDefaultDefinitions()  : stdClass
Get the default definitions object.
getDefaultExternalDocs()  : stdClass
Returns the default externalDocs element.
getDefaultInfo()  : stdClass
Returns the default info element.
getDefaultResponses()  : stdClass
Returns the default responses element.

Properties

Methods

export()

Export the definition.

public export([bool $encoded = true ]) : stdClass|string
Parameters
$encoded : bool = true

JSON encoded.

Tags
throws
ApiException
Return values
stdClass|string

getAccount()

Get the account name from the schema

public getAccount() : string
Return values
string

getApplication()

Get the application name from the schema

public getApplication() : string
Return values
string

import()

Import an existing definition.

public import(array<string|int, mixed>|string $definition) : mixed
Parameters
$definition : array<string|int, mixed>|string
Tags
throws
ApiException
Return values
mixed

setAccount()

Set the account name.

public setAccount(string $accountName) : mixed
Parameters
$accountName : string
Return values
mixed

setApplication()

Set the application name.

public setApplication(string $applicationName) : mixed
Parameters
$applicationName : string
Return values
mixed

setDefault()

Sets the default OpenApi parent schema fragments to define the resources in the doc (application).

public setDefault(string $accountName, string $applicationName) : mixed
Parameters
$accountName : string
$applicationName : string
Return values
mixed

setDomain()

Set the domain.

public setDomain() : mixed
Return values
mixed

getDefaultDefinitions()

Get the default definitions object.

protected getDefaultDefinitions() : stdClass
Return values
stdClass

getDefaultExternalDocs()

Returns the default externalDocs element.

protected getDefaultExternalDocs() : stdClass
Return values
stdClass

getDefaultInfo()

Returns the default info element.

protected getDefaultInfo(string $applicationName) : stdClass
Parameters
$applicationName : string
Tags
throws
ApiException
Return values
stdClass

getDefaultResponses()

Returns the default responses element.

protected getDefaultResponses() : stdClass
Return values
stdClass

Search results