EntityDto
in package
FinalYes
Tags
Table of Contents
Properties
- $actions : ActionCollection|null
- $fields : FieldCollection|null
- $fqcn : string
- $instance : mixed
- $isAccessible : bool
- $metadata : ClassMetadataInfo
- $permission : string|null
- $primaryKeyName : mixed
- $primaryKeyValue : mixed
Methods
- __construct() : mixed
- __toString() : string
- getActions() : ActionCollection
- getAllPropertyNames() : array<string|int, mixed>
- Returns the names of all properties defined in the entity, no matter if they are used or not in the application.
- getFields() : FieldCollection|null
- getFqcn() : string
- getInstance() : mixed
- getName() : string
- getPermission() : string|null
- getPrimaryKeyName() : string|null
- getPrimaryKeyValue() : mixed
- getPrimaryKeyValueAsString() : string
- getPropertyDataType() : mixed
- getPropertyMetadata() : KeyValueStore
- hasProperty() : bool
- isAccessible() : bool
- isAssociation() : bool
- isEmbeddedClassProperty() : bool
- isToManyAssociation() : bool
- isToOneAssociation() : bool
- markAsInaccessible() : void
- newWithInstance() : self
- setActions() : void
- setFields() : void
- setInstance() : void
- toString() : string
Properties
$actions
private
ActionCollection|null
$actions
= null
$fields
private
FieldCollection|null
$fields
= null
$fqcn
private
string
$fqcn
$instance
private
mixed
$instance
$isAccessible
private
bool
$isAccessible
= true
$metadata
private
ClassMetadataInfo
$metadata
$permission
private
string|null
$permission
$primaryKeyName
private
mixed
$primaryKeyName
$primaryKeyValue
private
mixed
$primaryKeyValue
= null
Methods
__construct()
public
__construct(string $entityFqcn, ClassMetadata|ClassMetadataInfo $entityMetadata[, string|null $entityPermission = null ][, mixed $entityInstance = null ]) : mixed
Parameters
- $entityFqcn : string
- $entityMetadata : ClassMetadata|ClassMetadataInfo
- $entityPermission : string|null = null
- $entityInstance : mixed = null
__toString()
public
__toString() : string
Return values
stringgetActions()
public
getActions() : ActionCollection
Return values
ActionCollectiongetAllPropertyNames()
Returns the names of all properties defined in the entity, no matter if they are used or not in the application.
public
getAllPropertyNames() : array<string|int, mixed>
Return values
array<string|int, mixed>getFields()
public
getFields() : FieldCollection|null
Return values
FieldCollection|nullgetFqcn()
public
getFqcn() : string
Return values
stringgetInstance()
public
getInstance() : mixed
getName()
public
getName() : string
Return values
stringgetPermission()
public
getPermission() : string|null
Return values
string|nullgetPrimaryKeyName()
public
getPrimaryKeyName() : string|null
Return values
string|nullgetPrimaryKeyValue()
public
getPrimaryKeyValue() : mixed
getPrimaryKeyValueAsString()
public
getPrimaryKeyValueAsString() : string
Return values
stringgetPropertyDataType()
public
getPropertyDataType(string $propertyName) : mixed
Parameters
- $propertyName : string
getPropertyMetadata()
public
getPropertyMetadata(string $propertyName) : KeyValueStore
Parameters
- $propertyName : string
Return values
KeyValueStorehasProperty()
public
hasProperty(string $propertyName) : bool
Parameters
- $propertyName : string
Return values
boolisAccessible()
public
isAccessible() : bool
Return values
boolisAssociation()
public
isAssociation(string $propertyName) : bool
Parameters
- $propertyName : string
Return values
boolisEmbeddedClassProperty()
public
isEmbeddedClassProperty(string $propertyName) : bool
Parameters
- $propertyName : string
Return values
boolisToManyAssociation()
public
isToManyAssociation(string $propertyName) : bool
Parameters
- $propertyName : string
Return values
boolisToOneAssociation()
public
isToOneAssociation(string $propertyName) : bool
Parameters
- $propertyName : string
Return values
boolmarkAsInaccessible()
public
markAsInaccessible() : void
newWithInstance()
public
newWithInstance(mixed $newEntityInstance) : self
Parameters
- $newEntityInstance : mixed
Return values
selfsetActions()
public
setActions(ActionCollection $actions) : void
Parameters
- $actions : ActionCollection
setFields()
public
setFields(FieldCollection $fields) : void
Parameters
- $fields : FieldCollection
setInstance()
public
setInstance(object|null $newEntityInstance) : void
Parameters
- $newEntityInstance : object|null
toString()
public
toString() : string