Documentation

TypeMap
in package

Table of Contents

Properties

$instance  : TypeMap|null
$fqnToClass  : array<string, Writable>
$openAPIToPHP  : array<string, callable(): string>
$refToType  : array<string, Type>

Methods

getClassFromFQN()  : Writable|null
getFQNFromSchema()  : string
getInstance()  : TypeMap
getTypeFromReference()  : Type|null
registerClass()  : void
registerReference()  : void
__construct()  : mixed

Properties

$openAPIToPHP

private array<string, callable(): string> $openAPIToPHP

$refToType

private array<string, Type> $refToType = []

Methods

getClassFromFQN()

public getClassFromFQN(string $fqn) : Writable|null
APIYes
Parameters
$fqn : string
Return values
Writable|null

getFQNFromSchema()

public getFQNFromSchema(Reference $schema) : string
Parameters
$schema : Reference
Return values
string

getTypeFromReference()

public getTypeFromReference(string $ref) : Type|null
Parameters
$ref : string
Return values
Type|null

registerReference()

public registerReference(string $ref, Type $type) : void
Parameters
$ref : string
$type : Type

__construct()

private __construct() : mixed

        
On this page

Search results