DataClass
Represents the structure of a data object.Properties
name- Name of the data classproperties- AllDataPropertyobjects of the classmethods- All magical creationDataMethodobjectsconstructorMethod- The constructorDataMethodisReadOnly- Whether the class is read-onlyisAbstract- Whether the class is abstractappendable- Whether the class implementsAppendableDataincludeable- Whether the class implementsIncludeableDataresponsable- Whether the class implementsResponsableDatatransformable- Whether the class implementsTransformableDatavalidatable- Whether the class implementsValidatableDatawrappable- Whether the class implementsWrappableDataemptyData- Whether the class implementsEmptyDataattributes- Collection of resolved attributes assigned to the classdataCollectablePropertyAnnotations- Property annotations used to infer data collection typeallowedRequestIncludes- Allowed request includesallowedRequestExcludes- Allowed request excludesallowedRequestOnly- Allowed request onlyallowedRequestExcept- Allowed request exceptoutputMappedProperties- Property names mapped when transformingtransformationFields- Structure of transformation fields
DataProperty
Represents a single property within a data object.Properties
name- Name of the propertyclassName- Name of the class of the propertytype- TheDataPropertyTypeof the propertyvalidate- Whether the property should be automatically validatedcomputed- Whether the property is computedhidden- Whether the property is hidden when transformingisPromoted- Whether the property is constructor promotedisReadOnly- Whether the property is read-onlyhasDefaultValue- Whether the property has a default valuedefaultValue- The default value of the propertycast- The cast assigned to the propertytransformer- The transformer assigned to the propertyinputMappedName- The name used to map an input property nameoutputMappedName- The name used to map an output property nameattributes- Collection of resolved attributes assigned to the property
DataMethod
Represents a method within a data object.Properties
name- Name of the methodparameters- AllDataParameterandDataPropertyobjects of the methodisStatic- Whether the method is staticisPublic- Whether the method is publicisCustomCreationMethod- Whether the method is a custom creation method (magical)returnType- TheDataTypeof the return value
DataParameter
Represents a single parameter/property within a data method.Properties
name- Name of the parameterisPromoted- Whether the property/parameter is constructor promotedhasDefaultValue- Whether the parameter has a default valuedefaultValue- The default value of the parametertype- TheDataTypeof the parameter
DataType
Represents a type within a data object.Properties
Type- Can be aNamedType,UnionType, orIntersectionTypeisNullable- Whether the type can be nullableisMixed- Whether the type is a mixed typekind- TheDataTypeKindof the type
DataPropertyType
ExtendsDataType with additional properties for data properties.
Properties
Inherits all properties fromDataType, plus:
isOptional- Whether the type can be optionallazyType- The class of the lazy type for the propertydataClass- The data object class or collection data classdataCollectableClass- The collectable type of data objectskind- TheDataTypeKindof the type
DataTypeKind
An enum representing the kind of type with respect to the package:Default- A non-package-specific typeDataObject- A data objectDataCollection- ADataCollectionof data objectsDataPaginatedCollection- ADataPaginatedCollectionof data objectsDataCursorPaginatedCollection- ADataCursorPaginatedCollectionof data objectsDataArray- An array of data objectsDataEnumerable- AnEnumerableof data objectsDataPaginator- APaginatorof data objectsDataCursorPaginator- ACursorPaginatorof data objects
NamedType
Represents a named PHP type.Properties
name- The name of the typebuiltIn- Whether the type is a built-in typeacceptedTypes- Array of accepted types as stringskind- TheDataTypeKindof the typedataClass- The data object class or collection data classdataCollectableClass- The collectable type of data objectsisCastable- Whether the type is aCastable
UnionType / IntersectionType
Represents a union or intersection of types.Properties
types- Array of types (can beNamedType,UnionType, orIntersectionType)