API.md

April 4, 2020 · View on GitHub

Table of contents


Class: \Swaggest\GoCodeBuilder\GoCodeBuilder

GoCodeBuilder provides file manager and names processor.

VisibilityFunction
public__construct() : void
publicexportableName(mixed name</strong>,<em>bool</em><strong>name</strong>, <em>bool</em> <strong>requireBase=false) : void
publicprivateName(mixed $name) : void
publicsetBuilderVersion(mixed $builderVersion) : void
publicstoreToDisk(mixed $srcPath) : void
protectedtoCamelCase(string string</strong>,<em>bool</em><strong>string</strong>, <em>bool</em> <strong>lowerFirst=false) : string

This class extends \Swaggest\CodeBuilder\CodeBuilder


Class: \Swaggest\GoCodeBuilder\Import

VisibilityFunction
public__construct(mixed name</strong>,<em>mixed</em><strong>name</strong>, <em>mixed</em> <strong>alias=null, mixed $defaultPackageName=null) : void
publicgetPackage() : string
publicgetReferencePrefix() : mixed

Class: \Swaggest\GoCodeBuilder\Exception

VisibilityFunction

This class extends \Exception

This class implements \Throwable


Class: \Swaggest\GoCodeBuilder\JsonSchema\StructHookCallback

VisibilityFunction
public__construct(\Closure $closure) : void
StructHookCallback constructor.
publicprocess(\Swaggest\GoCodeBuilder\Templates\Struct\StructDef structDef</strong>,<em>mixed</em><strong>structDef</strong>, <em>mixed</em> <strong>path, mixed $schema) : void

This class implements \Swaggest\GoCodeBuilder\JsonSchema\GoBuilderStructHook


Interface: \Swaggest\GoCodeBuilder\JsonSchema\GoBuilderPathToNameHook

VisibilityFunction
publicpathToName(mixed $path) : void

Class: \Swaggest\GoCodeBuilder\JsonSchema\MarshalEnum

VisibilityFunction
public__construct(\Swaggest\GoCodeBuilder\Templates\Type\Type type</strong>, <em>[\Swaggest\GoCodeBuilder\Templates\Type\NamedType](#interface-swaggestgocodebuildertemplatestypenamedtype)</em> <strong>base, array enum</strong>, <em>[\Swaggest\GoCodeBuilder\JsonSchema\GoBuilder](#class-swaggestgocodebuilderjsonschemagobuilder)</em> <strong>builder) : void
MarshalEnum constructor.
protectedtoString() : void

This class extends \Swaggest\GoCodeBuilder\Templates\GoTemplate


Class: \Swaggest\GoCodeBuilder\JsonSchema\GeneratedStruct

VisibilityFunction

Class: \Swaggest\GoCodeBuilder\JsonSchema\Options

VisibilityFunction
public staticsetUpProperties(\Swaggest\GoCodeBuilder\JsonSchema\Properties/\Swaggest\GoCodeBuilder\JsonSchema\static properties</strong>,<em>\Swaggest\JsonSchema\Schema</em><strong>properties</strong>, <em>\Swaggest\JsonSchema\Schema</em> <strong>ownerSchema) : void

This class extends \Swaggest\JsonSchema\Structure\ClassStructure

This class implements \Swaggest\JsonSchema\Structure\WithResolvedValue, \Swaggest\JsonSchema\Structure\ObjectItemContract, \Traversable, \Iterator, \JsonSerializable, \ArrayAccess, \Swaggest\JsonSchema\Structure\ClassStructureContract


Class: \Swaggest\GoCodeBuilder\JsonSchema\UnmarshalUnion

VisibilityFunction
publicpatternVarName(mixed $pattern) : void
protectedtoString() : void

This class extends \Swaggest\GoCodeBuilder\Templates\GoTemplate


Class: \Swaggest\GoCodeBuilder\JsonSchema\TypeBuilder

VisibilityFunction
public__construct(\Swaggest\JsonSchema\Schema schema</strong>,<em>string</em><strong>schema</strong>, <em>string</em> <strong>path, \Swaggest\GoCodeBuilder\JsonSchema\GoBuilder goBuilder</strong>, <em>\Swaggest\GoCodeBuilder\JsonSchema\StructDef/null/[\Swaggest\GoCodeBuilder\Templates\Struct\StructDef](#class-swaggestgocodebuildertemplatesstructstructdef)</em> <strong>parentStruct=null, bool $isRequired=false) : void
TypeBuilder constructor.
publicbuild() : \Swaggest\GoCodeBuilder\Templates\Type\AnyType

Class: \Swaggest\GoCodeBuilder\JsonSchema\StripPrefixPathToNameHook

VisibilityFunction
publicpathToName(mixed $path) : void

This class implements \Swaggest\GoCodeBuilder\JsonSchema\GoBuilderPathToNameHook


Interface: \Swaggest\GoCodeBuilder\JsonSchema\GoBuilderStructHook

VisibilityFunction
publicprocess(\Swaggest\GoCodeBuilder\Templates\Struct\StructDef structDef</strong>,<em>string</em><strong>structDef</strong>, <em>string</em> <strong>path, \Swaggest\GoCodeBuilder\JsonSchema\Schema $schema) : null

Class: \Swaggest\GoCodeBuilder\JsonSchema\MarshalingTestFunc

VisibilityFunction
public staticmake(\Swaggest\GoCodeBuilder\JsonSchema\GeneratedStruct struct</strong>, <em>[\Swaggest\GoCodeBuilder\JsonSchema\Options](#class-swaggestgocodebuilderjsonschemaoptions)</em> <strong>options=null) : void

Class: \Swaggest\GoCodeBuilder\JsonSchema\Exception

VisibilityFunction

This class extends \Exception

This class implements \Throwable


Class: \Swaggest\GoCodeBuilder\JsonSchema\GoBuilder

VisibilityFunction
public__construct() : void
publicgetClass(\Swaggest\GoCodeBuilder\JsonSchema\Schema schema</strong>,<em>string</em><strong>schema</strong>, <em>string</em> <strong>path) : \Swaggest\GoCodeBuilder\Templates\Struct\StructDef
publicgetCode() : mixed
publicgetGeneratedStruct(\Swaggest\GoCodeBuilder\JsonSchema\Schema schema</strong>,<em>string</em><strong>schema</strong>, <em>string</em> <strong>path) : mixed/\Swaggest\GoCodeBuilder\JsonSchema\GeneratedStruct
publicgetGeneratedStructs() : \Swaggest\GoCodeBuilder\JsonSchema\GeneratedStruct[]
publicgetType(\Swaggest\GoCodeBuilder\JsonSchema\Schema schema</strong>,<em>string</em><strong>schema</strong>, <em>string</em> <strong>path='#', \Swaggest\GoCodeBuilder\JsonSchema\StructDef/null/\Swaggest\GoCodeBuilder\Templates\Struct\StructDef parentStruct=null</strong>,<em>bool</em><strong>parentStruct=null</strong>, <em>bool</em> <strong>isRequired=false) : \Swaggest\GoCodeBuilder\Templates\Type\AnyType
publicpathToName(mixed $path) : void

Class: \Swaggest\GoCodeBuilder\JsonSchema\MarshalJson

VisibilityFunction
public__construct(\Swaggest\GoCodeBuilder\JsonSchema\GoBuilder builder</strong>, <em>[\Swaggest\GoCodeBuilder\Templates\Struct\StructDef](#class-swaggestgocodebuildertemplatesstructstructdef)</em> <strong>type) : void
publicaddNamedProperty(mixed $name) : void
publicaddPatternProperty(string regex</strong>, <em>[\Swaggest\GoCodeBuilder\Templates\Struct\StructProperty](#class-swaggestgocodebuildertemplatesstructstructproperty)</em> <strong>structProperty) : \Swaggest\GoCodeBuilder\JsonSchema$this
publicaddSomeOf(mixed kind</strong>,<em>mixed</em><strong>kind</strong>, <em>mixed</em> <strong>name) : void
publicenableAdditionalProperties(\Swaggest\GoCodeBuilder\Templates\Struct\StructProperty $structProperty) : void
publicforbidAdditionalProperties() : void
publicisAdditionalPropertiesEnabled() : bool
protectedtoString() : void

This class extends \Swaggest\GoCodeBuilder\Templates\GoTemplate


Class: \Swaggest\GoCodeBuilder\JsonSchema\MarshalUnion

VisibilityFunction
protectedtoString() : void

This class extends \Swaggest\GoCodeBuilder\Templates\GoTemplate


Class: \Swaggest\GoCodeBuilder\Style\Comment

VisibilityFunction
public staticsentence(mixed $s) : void

Class: \Swaggest\GoCodeBuilder\Style\Initialisms

VisibilityFunction
public__construct() : void
publicprocess(mixed $goName) : void

Class: \Swaggest\GoCodeBuilder\Templates\Imports

VisibilityFunction
publicadd(\Swaggest\GoCodeBuilder\Import import</strong>)</strong> : <em>\Swaggest\GoCodeBuilder\Templates\this
publicaddByName(mixed name</strong>,<em>mixed</em><strong>name</strong>, <em>mixed</em> <strong>alias=null) : void
publicdemand() : void
protectedtoString() : void

This class extends \Swaggest\GoCodeBuilder\Templates\GoTemplate


Class: \Swaggest\GoCodeBuilder\Templates\GoTemplate (abstract)

VisibilityFunction
publicescapeValue(mixed $value) : void
publicgetComment() : string
publicifThenElse(mixed condition</strong>,<em>mixed</em><strong>condition</strong>, <em>mixed</em> <strong>then, string $else='') : void
publicpadLines(mixed with</strong>,<em>mixed</em><strong>with</strong>, <em>mixed</em> <strong>text, bool skipFirst=true</strong>,<em>bool</em><strong>skipFirst=true</strong>, <em>bool</em> <strong>forcePad=false) : void
publicsetComment(mixed $comment) : void
publicstripEmptyLines(mixed $text) : void
publictabIndents(mixed text</strong>,<em>mixed</em><strong>text</strong>, <em>mixed</em> <strong>spaces=4) : void
publictrim(mixed $s) : void
protectedrenderComment() : void

This class extends \Swaggest\CodeBuilder\AbstractTemplate


Class: \Swaggest\GoCodeBuilder\Templates\Code

VisibilityFunction
public__construct(mixed $body=null) : void
publicaddSnippet(mixed code</strong>,<em>bool</em><strong>code</strong>, <em>bool</em> <strong>prepend=false, mixed $uniqueKey=null) : void
publicimports() : \Swaggest\GoCodeBuilder\Templates\Imports
protectedtoString() : void

This class extends \Swaggest\GoCodeBuilder\Templates\GoTemplate


Class: \Swaggest\GoCodeBuilder\Templates\GoFile

VisibilityFunction
public__construct(string package</strong>,<em>string/null</em><strong>package</strong>, <em>string/null</em> <strong>importPath=null) : void
GoFile constructor.
publiccommitTransaction() : void
publicdropTransaction(bool $ignoreMissing=true) : void
publicgetCode() : \Swaggest\GoCodeBuilder\Templates\Code
publicgetComment() : mixed
public staticgetCurrentGoFile() : mixed
publicgetImportPath() : null
publicgetImports() : \Swaggest\GoCodeBuilder\Templates\Imports
publicgetPackage() : mixed
publicsetCode(\Swaggest\GoCodeBuilder\Templates\Code $code) : \Swaggest\GoCodeBuilder\Templates\GoFile
public staticsetCurrentGoFile(\Swaggest\GoCodeBuilder\Templates\GoFile $currentGoFile=null) : \Swaggest\GoCodeBuilder\Templates\GoFile/null previous go file
publicsetDependentCode(mixed uniqueKey</strong>,<em>mixed</em><strong>uniqueKey</strong>, <em>mixed</em> <strong>value) : void
publicsetImportPath(null $importPath) : \Swaggest\GoCodeBuilder\Templates\GoFile
publicsetPackage(mixed $package) : \Swaggest\GoCodeBuilder\Templates\GoFile
publicsetSkipImportComment(boolean $skipImportComment) : \Swaggest\GoCodeBuilder\Templates\GoFile
publicstartTransaction() : void
protectedtoString() : void

This class extends \Swaggest\GoCodeBuilder\Templates\GoTemplate


Class: \Swaggest\GoCodeBuilder\Templates\Constant\TypeConstBlock

VisibilityFunction
public__construct(\Swaggest\GoCodeBuilder\Templates\Type\Type $type) : void
publicaddValue(mixed name</strong>,<em>mixed</em><strong>name</strong>, <em>mixed</em> <strong>value, mixed $comment=null) : void
publicgetValues() : mixed
protectedtoString() : void

This class extends \Swaggest\GoCodeBuilder\Templates\GoTemplate


Class: \Swaggest\GoCodeBuilder\Templates\Func\FuncDef

VisibilityFunction
public__construct(string name</strong>,<em>string</em><strong>name</strong>, <em>string</em> <strong>comment='') : void
FuncDef constructor.
publicgetArguments() : \Swaggest\GoCodeBuilder\Templates\Func\Arguments
publicgetName() : string
publicgetRenderMode() : string
publicgetResult() : \Swaggest\GoCodeBuilder\Templates\Func\Result/null
publicgetSelf() : \Swaggest\GoCodeBuilder\Templates\Func\Argument/null
publicsetArguments(\Swaggest\GoCodeBuilder\Templates\Func\Arguments $arguments) : \Swaggest\GoCodeBuilder\Templates\Func\FuncDef
publicsetBody(\Swaggest\GoCodeBuilder\Templates\Code $body) : \Swaggest\GoCodeBuilder\Templates\Func\FuncDef
publicsetName(string $name) : \Swaggest\GoCodeBuilder\Templates\Func\FuncDef
publicsetRenderMode(string $renderMode) : \Swaggest\GoCodeBuilder\Templates\Func\FuncDef
publicsetResult(\Swaggest\GoCodeBuilder\Templates\Func\Result $result=null) : \Swaggest\GoCodeBuilder\Templates\Func\FuncDef
publicsetSelf(\Swaggest\GoCodeBuilder\Templates\Func\Argument $self) : \Swaggest\GoCodeBuilder\Templates\Func\FuncDef
protectedtoString() : void

This class extends \Swaggest\GoCodeBuilder\Templates\GoTemplate


Class: \Swaggest\GoCodeBuilder\Templates\Func\FuncIface

VisibilityFunction
public__construct(\Swaggest\GoCodeBuilder\Templates\Func\FuncDef $funcDef) : void
FuncIface constructor.
protectedtoString() : void

This class extends \Swaggest\GoCodeBuilder\Templates\GoTemplate


Class: \Swaggest\GoCodeBuilder\Templates\Func\Arguments

VisibilityFunction
publicadd(mixed name</strong>, <em>[\Swaggest\GoCodeBuilder\Templates\Type\AnyType](#interface-swaggestgocodebuildertemplatestypeanytype)</em> <strong>type, bool $isVariadic=false) : void
publiccount() : void
publictoTypesString() : void
protectedtoString() : void

This class extends \Swaggest\GoCodeBuilder\Templates\GoTemplate


Class: \Swaggest\GoCodeBuilder\Templates\Func\Result

VisibilityFunction
publictoTypesString() : void
protectedtoString() : void

This class extends \Swaggest\GoCodeBuilder\Templates\Func\Arguments


Class: \Swaggest\GoCodeBuilder\Templates\Func\Argument

VisibilityFunction
public__construct(string name</strong>, <em>[\Swaggest\GoCodeBuilder\Templates\Type\AnyType](#interface-swaggestgocodebuildertemplatestypeanytype)</em> <strong>type, bool $isVariadic=false) : void
Argument constructor.
publicgetType() : mixed
protectedtoString() : void

This class extends \Swaggest\GoCodeBuilder\Templates\GoTemplate


Class: \Swaggest\GoCodeBuilder\Templates\Iface\IfaceDef

VisibilityFunction
public__construct(mixed name</strong>,<em>mixed</em><strong>name</strong>, <em>mixed</em> <strong>comment=null) : void
publicaddFunc(\Swaggest\GoCodeBuilder\Templates\Func\FuncDef func</strong>,<em>bool</em><strong>func</strong>, <em>bool</em> <strong>prepend=false) : void
publicaddType(\Swaggest\GoCodeBuilder\Templates\Type\Type func</strong>,<em>bool</em><strong>func</strong>, <em>bool</em> <strong>prepend=false) : void
protectedtoString() : void

This class extends \Swaggest\GoCodeBuilder\Templates\GoTemplate


Class: \Swaggest\GoCodeBuilder\Templates\Mapping\Mapping

VisibilityFunction

Class: \Swaggest\GoCodeBuilder\Templates\Struct\StructDef

VisibilityFunction
public__construct(string name</strong>,<em>string</em><strong>name</strong>, <em>string</em> <strong>comment='') : void
StructDef constructor.
publicaddFunc(\Swaggest\GoCodeBuilder\Templates\Func\FuncDef func</strong>,<em>bool</em><strong>func</strong>, <em>bool</em> <strong>prepend=false) : void
publicaddProperty(\Swaggest\GoCodeBuilder\Templates\Struct\StructProperty property</strong>,<em>bool</em><strong>property</strong>, <em>bool</em> <strong>prepend=false) : void
publicgetCode() : mixed
publicgetFuncs() : \Swaggest\GoCodeBuilder\Templates\Func\FuncDef[]
publicgetImport() : \Swaggest\GoCodeBuilder\Templates\Struct\Import/null
publicgetName() : mixed
publicgetProperties() : \Swaggest\GoCodeBuilder\Templates\Struct\StructProperty[]
publicgetType() : \Swaggest\GoCodeBuilder\Templates\Struct\StructType
publicrenderFields() : void
publicrenderFuncs() : void
publicsetImport(\Swaggest\GoCodeBuilder\Import $import=null) : \Swaggest\GoCodeBuilder\Templates\Struct\StructDef
publicsetName(mixed $name) : \Swaggest\GoCodeBuilder\Templates\Struct\StructDef
publicsetType(\Swaggest\GoCodeBuilder\Templates\Type\Type $type) : void
protectedtoString() : void

This class extends \Swaggest\GoCodeBuilder\Templates\GoTemplate


Class: \Swaggest\GoCodeBuilder\Templates\Struct\StructType

VisibilityFunction
public__construct(\Swaggest\GoCodeBuilder\Templates\Struct\StructDef $structDef) : void
StructType constructor.
publicgetName() : mixed
publicgetTypeString() : mixed
protectedtoString() : void

This class extends \Swaggest\GoCodeBuilder\Templates\GoTemplate

This class implements \Swaggest\GoCodeBuilder\Templates\Type\NamedType, \Swaggest\GoCodeBuilder\Templates\Type\AnyType


Class: \Swaggest\GoCodeBuilder\Templates\Struct\FluentSetter

VisibilityFunction
public staticaddToStruct(\Swaggest\GoCodeBuilder\Templates\Struct\StructDef structDef</strong>, <em>[\Swaggest\GoCodeBuilder\Templates\Struct\StructProperty](#class-swaggestgocodebuildertemplatesstructstructproperty)</em> <strong>goProperty) : void
public staticmake(\Swaggest\GoCodeBuilder\Templates\Struct\StructDef structDef</strong>, <em>[\Swaggest\GoCodeBuilder\Templates\Struct\StructProperty](#class-swaggestgocodebuildertemplatesstructstructproperty)</em> <strong>goProperty) : void
public staticmakeMap(\Swaggest\GoCodeBuilder\Templates\Struct\StructDef structDef</strong>, <em>[\Swaggest\GoCodeBuilder\Templates\Struct\StructProperty](#class-swaggestgocodebuildertemplatesstructstructproperty)</em> <strong>goProperty) : void

Class: \Swaggest\GoCodeBuilder\Templates\Struct\Tags

VisibilityFunction
publicsetTag(mixed key</strong>,<em>mixed</em><strong>key</strong>, <em>mixed</em> <strong>value) : void
protectedtoString() : void

This class extends \Swaggest\GoCodeBuilder\Templates\GoTemplate


Class: \Swaggest\GoCodeBuilder\Templates\Struct\StructFunctions

VisibilityFunction
public__construct(\Swaggest\GoCodeBuilder\Templates\Struct\StructDef $struct) : void
StructFunctions constructor.
protectedtoString() : void

This class extends \Swaggest\CodeBuilder\AbstractTemplate


Class: \Swaggest\GoCodeBuilder\Templates\Struct\StructProperty

VisibilityFunction
public__construct(mixed name</strong>, <em>[\Swaggest\GoCodeBuilder\Templates\Type\AnyType](#interface-swaggestgocodebuildertemplatestypeanytype)</em> <strong>type, \Swaggest\GoCodeBuilder\Templates\Struct\Tags $tags=null) : void
publicgetName() : string/null
publicgetTags() : \Swaggest\GoCodeBuilder\Templates\Struct\Tags
publicgetType() : \Swaggest\GoCodeBuilder\Templates\Type\AnyType
publicsetType(\Swaggest\GoCodeBuilder\Templates\Type\AnyType $type) : void
protectedtoString() : void

This class extends \Swaggest\GoCodeBuilder\Templates\GoTemplate


Class: \Swaggest\GoCodeBuilder\Templates\Struct\StructFields

VisibilityFunction
public__construct(\Swaggest\GoCodeBuilder\Templates\Struct\StructDef $struct) : void
StructType constructor.
protectedtoString() : void

This class extends \Swaggest\GoCodeBuilder\Templates\GoTemplate


Class: \Swaggest\GoCodeBuilder\Templates\Struct\StructCast

VisibilityFunction
public__construct(\Swaggest\GoCodeBuilder\Templates\Struct\StructDef baseStruct</strong>, <em>[\Swaggest\GoCodeBuilder\Templates\Struct\StructDef](#class-swaggestgocodebuildertemplatesstructstructdef)</em> <strong>derivedStruct, array/string[] propNamesMap=array()</strong>, <em>[\Swaggest\GoCodeBuilder\TypeCast\Registry](#interface-swaggestgocodebuildertypecastregistry)</em> <strong>registry=null) : void
StructCast constructor.
publicgetBaseStruct() : \Swaggest\GoCodeBuilder\Templates\Struct\StructDef
publicgetBaseTypeString() : string
publicgetDerivedStruct() : \Swaggest\GoCodeBuilder\Templates\Struct\StructDef
publicgetDerivedTypeString() : string
publicgetLoadFrom() : mixed
publicgetMapTo() : mixed
publicsetPropMap(mixed baseName</strong>,<em>mixed</em><strong>baseName</strong>, <em>mixed</em> <strong>derivedName) : void

This class implements \Swaggest\GoCodeBuilder\TypeCast\CastFunctions


Class: \Swaggest\GoCodeBuilder\Templates\Struct\StructIface

VisibilityFunction
public__construct(\Swaggest\GoCodeBuilder\Templates\Struct\StructDef struct</strong>,<em>mixed</em><strong>struct</strong>, <em>mixed</em> <strong>name, string $comment='') : void
publicgetIface() : mixed
protectedtoString() : void

This class extends \Swaggest\GoCodeBuilder\Templates\GoTemplate


Interface: \Swaggest\GoCodeBuilder\Templates\Type\NoOmitEmpty

VisibilityFunction
publicisNoOmitEmpty() : bool

Interface: \Swaggest\GoCodeBuilder\Templates\Type\AnyType

VisibilityFunction
publicgetTypeString() : mixed
publicrender() : void

Class: \Swaggest\GoCodeBuilder\Templates\Type\FuncType

VisibilityFunction
public__construct(\Swaggest\GoCodeBuilder\Templates\Func\FuncDef $func) : void
publicgetTypeString() : mixed
protectedtoString() : void

This class extends \Swaggest\GoCodeBuilder\Templates\GoTemplate

This class implements \Swaggest\GoCodeBuilder\Templates\Type\AnyType


Class: \Swaggest\GoCodeBuilder\Templates\Type\Type

VisibilityFunction
public__construct(mixed type</strong>, <em>[\Swaggest\GoCodeBuilder\Import](#class-swaggestgocodebuilderimport)</em> <strong>import=null) : void
publicequals(\Swaggest\GoCodeBuilder\Templates\Type\Type $type) : void
publicgetImport() : \Swaggest\GoCodeBuilder\Templates\Type\Import/null
publicgetName() : mixed
publicgetTypeString() : mixed
protectedtoString() : void

This class extends \Swaggest\GoCodeBuilder\Templates\GoTemplate

This class implements \Swaggest\GoCodeBuilder\Templates\Type\NamedType, \Swaggest\GoCodeBuilder\Templates\Type\AnyType


Interface: \Swaggest\GoCodeBuilder\Templates\Type\NamedType

VisibilityFunction
publicgetName() : string

This class implements \Swaggest\GoCodeBuilder\Templates\Type\AnyType


Class: \Swaggest\GoCodeBuilder\Templates\Type\Map

VisibilityFunction
public__construct(\Swaggest\GoCodeBuilder\Templates\Type\AnyType keyType</strong>, <em>[\Swaggest\GoCodeBuilder\Templates\Type\AnyType](#interface-swaggestgocodebuildertemplatestypeanytype)</em> <strong>valueType) : void
Map constructor.
publicgetKeyType() : \Swaggest\GoCodeBuilder\Templates\Type\AnyType
publicgetTypeString() : mixed
publicgetValueType() : \Swaggest\GoCodeBuilder\Templates\Type\AnyType
publicrenderName() : void
protectedtoString() : void

This class extends \Swaggest\GoCodeBuilder\Templates\GoTemplate

This class implements \Swaggest\GoCodeBuilder\Templates\Type\AnyType


Class: \Swaggest\GoCodeBuilder\Templates\Type\TypeUtil

VisibilityFunction
public staticequals(\Swaggest\GoCodeBuilder\Templates\Type\AnyType one</strong>, <em>[\Swaggest\GoCodeBuilder\Templates\Type\AnyType](#interface-swaggestgocodebuildertemplatestypeanytype)</em> <strong>two) : void
public staticfromString(string $typeString) : \Swaggest\GoCodeBuilder\Templates\Type\AnyType/\Swaggest\GoCodeBuilder\Templates\Type\Type
public staticgetBasicType(\Swaggest\GoCodeBuilder\Templates\Type\AnyType $type) : mixed
public staticisCastable(\Swaggest\GoCodeBuilder\Templates\Type\AnyType to</strong>, <em>[\Swaggest\GoCodeBuilder\Templates\Type\AnyType](#interface-swaggestgocodebuildertemplatestypeanytype)</em> <strong>from) : bool
public staticisFloat(\Swaggest\GoCodeBuilder\Templates\Type\AnyType $type) : bool
public staticisInt(\Swaggest\GoCodeBuilder\Templates\Type\AnyType $type) : bool
public staticisNumber(\Swaggest\GoCodeBuilder\Templates\Type\AnyType $type) : bool
public staticresolvePointer(\Swaggest\GoCodeBuilder\Templates\Type\AnyType $type) : void

Class: \Swaggest\GoCodeBuilder\Templates\Type\Slice

VisibilityFunction
public__construct(\Swaggest\GoCodeBuilder\Templates\Type\AnyType $type) : void
Slice constructor.
publicgetType() : \Swaggest\GoCodeBuilder\Templates\Type\AnyType
publicgetTypeString() : mixed
protectedtoString() : void

This class extends \Swaggest\GoCodeBuilder\Templates\GoTemplate

This class implements \Swaggest\GoCodeBuilder\Templates\Type\AnyType


Class: \Swaggest\GoCodeBuilder\Templates\Type\TypeCast

VisibilityFunction
public__construct(\Swaggest\GoCodeBuilder\Templates\Type\AnyType toType</strong>, <em>[\Swaggest\GoCodeBuilder\Templates\Type\AnyType](#interface-swaggestgocodebuildertemplatestypeanytype)</em> <strong>fromType, string toVarName</strong>,<em>string</em><strong>toVarName</strong>, <em>string</em> <strong>fromVarName, \Swaggest\GoCodeBuilder\TypeCast\Registry $registry=null) : void
TypeCast constructor.
protectedtoString() : void

This class extends \Swaggest\GoCodeBuilder\Templates\GoTemplate


Class: \Swaggest\GoCodeBuilder\Templates\Type\TypeCastException

VisibilityFunction

This class extends \Exception

This class implements \Throwable


Class: \Swaggest\GoCodeBuilder\Templates\Type\Pointer

VisibilityFunction
public__construct(\Swaggest\GoCodeBuilder\Templates\Type\AnyType $type) : void
Pointer constructor.
publicgetType() : \Swaggest\GoCodeBuilder\Templates\Type\AnyType
publicgetTypeString() : mixed
publicisNoOmitEmpty() : bool
publicsetNoOmitEmpty(bool $noOmitEmpty) : void
public statictryDereferenceOnce(\Swaggest\GoCodeBuilder\Templates\Type\AnyType $type) : \Swaggest\GoCodeBuilder\Templates\Type\AnyType
protectedtoString() : void

This class extends \Swaggest\GoCodeBuilder\Templates\GoTemplate

This class implements \Swaggest\GoCodeBuilder\Templates\Type\AnyType, \Swaggest\GoCodeBuilder\Templates\Type\NoOmitEmpty


Class: \Swaggest\GoCodeBuilder\TypeCast\CastRegistry

VisibilityFunction
publicaddStructCast(\Swaggest\GoCodeBuilder\TypeCast\CastFunctions $cast) : void
publiccanProcess(string toTypeString</strong>,<em>string</em><strong>toTypeString</strong>, <em>string</em> <strong>fromTypeString) : bool
publicprocess(string toTypeString</strong>,<em>string</em><strong>toTypeString</strong>, <em>string</em> <strong>fromTypeString, string toVarName</strong>,<em>string</em><strong>toVarName</strong>, <em>string</em> <strong>fromVarName, string $assignOp) : string
publicresetUsedCastFuncs() : \Swaggest\GoCodeBuilder\Templates\Func\FuncDef[]

This class implements \Swaggest\GoCodeBuilder\TypeCast\Registry


Class: \Swaggest\GoCodeBuilder\TypeCast\RegistryMux

VisibilityFunction
publicaddRegistry(\Swaggest\GoCodeBuilder\TypeCast\Registry $registry) : void
publiccanProcess(string toTypeString</strong>,<em>string</em><strong>toTypeString</strong>, <em>string</em> <strong>fromTypeString) : bool
public staticgetStd() : \Swaggest\GoCodeBuilder\TypeCast\static
publicprocess(string toTypeString</strong>,<em>string</em><strong>toTypeString</strong>, <em>string</em> <strong>fromTypeString, string toVarName</strong>,<em>string</em><strong>toVarName</strong>, <em>string</em> <strong>fromVarName, string $assignOp) : \Swaggest\GoCodeBuilder\TypeCast\Code/string

This class implements \Swaggest\GoCodeBuilder\TypeCast\Registry


Interface: \Swaggest\GoCodeBuilder\TypeCast\Registry

VisibilityFunction
publiccanProcess(string toTypeString</strong>,<em>string</em><strong>toTypeString</strong>, <em>string</em> <strong>fromTypeString) : bool
publicprocess(string toTypeString</strong>,<em>string</em><strong>toTypeString</strong>, <em>string</em> <strong>fromTypeString, string toVarName</strong>,<em>string</em><strong>toVarName</strong>, <em>string</em> <strong>fromVarName, string $assignOp) : \Swaggest\GoCodeBuilder\TypeCast\Code/string

Class: \Swaggest\GoCodeBuilder\TypeCast\PropertyCast

VisibilityFunction
public__construct(\Swaggest\GoCodeBuilder\Templates\Struct\StructDef baseStruct</strong>,<em>string</em><strong>baseStruct</strong>, <em>string</em> <strong>propertyName, \Swaggest\GoCodeBuilder\Templates\Type\AnyType derivedType</strong>, <em>[\Swaggest\GoCodeBuilder\TypeCast\Registry](#interface-swaggestgocodebuildertypecastregistry)</em> <strong>typeRegistry) : void
PropertyCast constructor.
publicgetBaseTypeString() : string
publicgetDerivedTypeString() : string
publicgetLoadFrom() : mixed
publicgetMapTo() : mixed

This class implements \Swaggest\GoCodeBuilder\TypeCast\CastFunctions


Interface: \Swaggest\GoCodeBuilder\TypeCast\CastFunctions

VisibilityFunction
publicgetBaseTypeString() : string
publicgetDerivedTypeString() : string
publicgetLoadFrom() : \Swaggest\GoCodeBuilder\Templates\Func\FuncDef
publicgetMapTo() : \Swaggest\GoCodeBuilder\Templates\Func\FuncDef

Class: \Swaggest\GoCodeBuilder\TypeCast\Time

VisibilityFunction
publiccanProcess(string toTypeString</strong>,<em>string</em><strong>toTypeString</strong>, <em>string</em> <strong>fromTypeString) : bool
publicprocess(string toTypeString</strong>,<em>string</em><strong>toTypeString</strong>, <em>string</em> <strong>fromTypeString, string toVarName</strong>,<em>string</em><strong>toVarName</strong>, <em>string</em> <strong>fromVarName, string $assignOp) : \Swaggest\GoCodeBuilder\TypeCast\Code/string

This class implements \Swaggest\GoCodeBuilder\TypeCast\Registry