class DataProperty

Methods

__construct(string $name, string $className, DataPropertyType $type, DataPropertyOperation $constructionOperation, string|null $constructionTarget, DataPropertyOperation|null $transformationOperation, bool $validate, bool $computed, bool $hidden, bool $isPromoted, bool $isConstructorParameter, bool $isReadonly, bool $hasGetHook, bool $morphable, bool $loadRelation, ReflectionAttribute|null $autoLazy, bool $hasDefaultValue, ReflectionAttribute|null $cast, ReflectionAttribute|null $transformer, string|int|null $inputMappedName, array|null $inputMappedPath, string|int|null $outputMappedName, array $configuredCasts, array $configuredTransformers, DataAttributesCollection $attributes, ReflectionProperty $reflection)

Create a new data property definition.

array
inputPath(string|int $wireKey)

Get the compiled input path for a selected wire key.

bool
isFinishedValue(mixed $value)

Determine if a supplied value is a finished declared Data value.

string|null
resolveModelRelation(Model $model)

Resolve the Eloquent relation selected by this property.

Details

at line 37
__construct(string $name, string $className, DataPropertyType $type, DataPropertyOperation $constructionOperation, string|null $constructionTarget, DataPropertyOperation|null $transformationOperation, bool $validate, bool $computed, bool $hidden, bool $isPromoted, bool $isConstructorParameter, bool $isReadonly, bool $hasGetHook, bool $morphable, bool $loadRelation, ReflectionAttribute|null $autoLazy, bool $hasDefaultValue, ReflectionAttribute|null $cast, ReflectionAttribute|null $transformer, string|int|null $inputMappedName, array|null $inputMappedPath, string|int|null $outputMappedName, array $configuredCasts, array $configuredTransformers, DataAttributesCollection $attributes, ReflectionProperty $reflection)

Create a new data property definition.

Parameters

string $name
string $className
DataPropertyType $type
DataPropertyOperation $constructionOperation
string|null $constructionTarget
DataPropertyOperation|null $transformationOperation
bool $validate
bool $computed
bool $hidden
bool $isPromoted
bool $isConstructorParameter
bool $isReadonly
bool $hasGetHook
bool $morphable
bool $loadRelation
ReflectionAttribute|null $autoLazy
bool $hasDefaultValue
ReflectionAttribute|null $cast
ReflectionAttribute|null $transformer
string|int|null $inputMappedName
array|null $inputMappedPath
string|int|null $outputMappedName
array $configuredCasts
array $configuredTransformers
DataAttributesCollection $attributes
ReflectionProperty $reflection

at line 74
array inputPath(string|int $wireKey)

Get the compiled input path for a selected wire key.

The returned list is shared immutable worker metadata and must not be mutated in place.

Parameters

string|int $wireKey

Return Value

array

at line 84
bool isFinishedValue(mixed $value)

Determine if a supplied value is a finished declared Data value.

Parameters

mixed $value

Return Value

bool

at line 146
string|null resolveModelRelation(Model $model)

Resolve the Eloquent relation selected by this property.

Parameters

Model $model

Return Value

string|null