TypeAdapter
final readonly class \
Adapter providing the old Symfony PropertyInfo\Type API on top of the new TypeInfo\Type.
Internal
only to be used within Extbase, not part of TYPO3 Core API.
Table of Contents
Methods
- __construct() : mixed
- getBuiltinType() : string
- getClassName() : string|null
- getCollectionKeyTypes() : array<int, TypeAdapter>
- getCollectionValueTypes() : array<int, TypeAdapter>
- isCollection() : bool
- isNullable() : bool
Methods
__construct()
public
__construct(Type $type[, bool $forceNullable = false ]) : mixed
Parameters
- $type : Type
- $forceNullable : bool = false
getBuiltinType()
public
getBuiltinType() : string
Return values
stringgetClassName()
public
getClassName() : string|null
Return values
string|nullgetCollectionKeyTypes()
public
getCollectionKeyTypes() : array<int, TypeAdapter>
Return values
array<int, TypeAdapter>getCollectionValueTypes()
public
getCollectionValueTypes() : array<int, TypeAdapter>
Return values
array<int, TypeAdapter>isCollection()
public
isCollection() : bool
Return values
boolisNullable()
public
isNullable() : bool