class BindingResolver

Properties

static protected array $booted
static protected array $columns
static protected array $docBlocks
static protected bool $skipDatabase
static protected PhpDocParser|null $docParser
static protected Lexer|null $lexer

Methods

static void
skipDatabase(bool $skip)

Set whether binding types skip the database schema.

static array
resolveTypesAndKey(string $routable, string|null $key)

Resolve the primitive types and binding key for a routable class.

static array
primitiveCastTypes(string|null $cast)

Resolve primitive types from an Eloquent cast.

static array
schemaTypes(Model $model, string $key)

Resolve primitive types from the model schema.

static array
getColumns(Model $model)

Return column metadata for the model.

static array
phpDocTypes(Model $model, string $key)

Resolve primitive types from the model's class-level docblock.

static array
parseDocBlock(Model $model)

Extract primitive property types from the model's class-level docblock.

static array
primitiveTypes(array $types)

Map raw primitive evidence to TypeScript primitives.

static PhpDocParser
initDocParser()

Build a configured PhpDoc parser instance.

static Lexer
initLexer()

Build a configured PhpDoc lexer instance.

static ParserConfig
getParserConfig()

Return the shared PhpDoc parser configuration.

static void
flushState()

Flush all static state.

Details

at line 36
static void skipDatabase(bool $skip)

Set whether binding types skip the database schema.

Parameters

bool $skip

Return Value

void

at line 50
static array resolveTypesAndKey(string $routable, string|null $key)

Resolve the primitive types and binding key for a routable class.

Parameters

string $routable
string|null $key

Return Value

array

at line 72
static protected array primitiveCastTypes(string|null $cast)

Resolve primitive types from an Eloquent cast.

Parameters

string|null $cast

Return Value

array

at line 86
static protected array schemaTypes(Model $model, string $key)

Resolve primitive types from the model schema.

Parameters

Model $model
string $key

Return Value

array

at line 102
static protected array getColumns(Model $model)

Return column metadata for the model.

Parameters

Model $model

Return Value

array

at line 120
static protected array phpDocTypes(Model $model, string $key)

Resolve primitive types from the model's class-level docblock.

Parameters

Model $model
string $key

Return Value

array

at line 132
static protected array parseDocBlock(Model $model)

Extract primitive property types from the model's class-level docblock.

Parameters

Model $model

Return Value

array

at line 177
static protected array primitiveTypes(array $types)

Map raw primitive evidence to TypeScript primitives.

Parameters

array $types

Return Value

array

at line 196
static protected PhpDocParser initDocParser()

Build a configured PhpDoc parser instance.

Return Value

PhpDocParser

at line 208
static protected Lexer initLexer()

Build a configured PhpDoc lexer instance.

Return Value

Lexer

at line 216
static protected ParserConfig getParserConfig()

Return the shared PhpDoc parser configuration.

Return Value

ParserConfig

at line 224
static void flushState()

Flush all static state.

Return Value

void