BindingResolver
class BindingResolver
Properties
| static protected array | $booted | ||
| static protected array | $columns | ||
| static protected array | $docBlocks | ||
| static protected PhpDocParser|null | $docParser | ||
| static protected Lexer|null | $lexer |
Methods
Resolve the primitive types and binding key for a routable class.
Resolve primitive types from an Eloquent cast.
Resolve primitive types from the model's class-level docblock.
Map raw primitive evidence to TypeScript primitives.
Build a configured PhpDoc parser instance.
Build a configured PhpDoc lexer instance.
Return the shared PhpDoc parser configuration.
Flush all static state.
Details
at line 36
static array
resolveTypesAndKey(string $routable, string|null $key)
Resolve the primitive types and binding key for a routable class.
at line 58
static protected array
primitiveCastTypes(string|null $cast)
Resolve primitive types from an Eloquent cast.
at line 72
static protected array
schemaTypes(Model $model, string $key)
Resolve primitive types from the model schema.
at line 88
static protected array
getColumns(Model $model)
Return column metadata for the model.
at line 102
static protected array
phpDocTypes(Model $model, string $key)
Resolve primitive types from the model's class-level docblock.
at line 114
static protected array
parseDocBlock(Model $model)
Extract primitive property types from the model's class-level docblock.
at line 159
static protected array
primitiveTypes(array $types)
Map raw primitive evidence to TypeScript primitives.
at line 178
static protected PhpDocParser
initDocParser()
Build a configured PhpDoc parser instance.
at line 190
static protected Lexer
initLexer()
Build a configured PhpDoc lexer instance.
at line 198
static protected ParserConfig
getParserConfig()
Return the shared PhpDoc parser configuration.
at line 206
static void
flushState()
Flush all static state.