Property

class \TYPO3\CMS\Extbase\Reflection\ClassSchema\Property

Class TYPO3\CMS\Extbase\Reflection\ClassSchema\Property

Table of Contents

Methods

__construct()  : mixed
filterLazyLoadingProxyAndLazyObjectStorage()  : bool
getCascadeValue()  : string|null
getDefaultValue()  : mixed
getElementType()  : non-empty-string|null
If the property is a collection of one of the types defined in \TYPO3\CMS\Extbase\Utility\TypeHandlingUtility::$collectionTypes, the element type is evaluated and represents the type of collection items inside the collection.
getFilteredTypes()  : array<int, Type>
getName()  : string
getPrimaryType()  : Type|null
Returns the primary type found in a list of types except LazyLoadingProxy
getType()  : non-empty-string|null
Returns the type (string, integer, ...) set by the `@var` doc comment and php property type declarations
getTypes()  : array<int, Type>
Returns the types (string, integer, ...) set by the `@var` doc comment and php property type declarations
getValidators()  : array
isLazy()  : bool
isNullable()  : bool
isObjectStorageType()  : bool
isPrivate()  : bool
isProtected()  : bool
isPublic()  : bool
isTransient()  : bool

Methods

__construct()

public __construct(string $name, array $definition) : mixed

Parameters

$name : string
$definition : array

filterLazyLoadingProxyAndLazyObjectStorage()

public filterLazyLoadingProxyAndLazyObjectStorage(Type $type) : bool

Parameters

$type : Type

Return values

bool

getCascadeValue()

public getCascadeValue() : string|null

Return values

string|null

getDefaultValue()

public getDefaultValue() : mixed

getElementType()

If the property is a collection of one of the types defined in \TYPO3\CMS\Extbase\Utility\TypeHandlingUtility::$collectionTypes, the element type is evaluated and represents the type of collection items inside the collection.

public getElementType() : non-empty-string|null

Deprecated

since v12, will be removed in v13.

Returns null if the property is not a collection and therefore no element type is defined.

Return values

non-empty-string|null

getFilteredTypes()

public getFilteredTypes(callable $callback) : array<int, Type>

Parameters

$callback : callable

Return values

array<int, Type>

getName()

public getName() : string

Return values

string

getPrimaryType()

Returns the primary type found in a list of types except LazyLoadingProxy

public getPrimaryType() : Type|null

Return values

Type|null

getType()

Returns the type (string, integer, ...) set by the `@var` doc comment and php property type declarations

public getType() : non-empty-string|null

Deprecated

since v12, will be removed in v13.

Returns null if type could not be evaluated

Return values

non-empty-string|null

getTypes()

Returns the types (string, integer, ...) set by the `@var` doc comment and php property type declarations

public getTypes() : array<int, Type>

Returns empty array if types could not be evaluated

Return values

array<int, Type>

getValidators()

public getValidators() : array

Return values

array

isLazy()

public isLazy() : bool

Return values

bool

isNullable()

public isNullable() : bool

Return values

bool

isObjectStorageType()

public isObjectStorageType() : bool

Return values

bool

isPrivate()

public isPrivate() : bool

Return values

bool

isProtected()

public isProtected() : bool

Return values

bool

isPublic()

public isPublic() : bool

Return values

bool

isTransient()

public isTransient() : bool

Return values

bool
On this page