abstract class ComponentMetadata (View source)

A ComponentMetadata instance holds object-relational property mapping.

Properties

protected string $className
protected ComponentMetadata|null $parent
protected ReflectionClass|null $reflectionClass The ReflectionClass instance of the component class.
protected CacheMetadata|null $cache
protected Property[] $declaredProperties

Methods

__construct(string $className, ClassMetadataBuildingContext $metadataBuildingContext)

No description

getClassName()

No description

setParent(ComponentMetadata $parent)

No description

getParent()

No description

getReflectionClass()

No description

setCache(CacheMetadata|null $cache = null)

No description

getCache()

No description

iterable|Property[]
addDeclaredProperty(Property $property)

No description

hasDeclaredProperty(string $propertyName)

No description

iterable|Property[]
getPropertiesIterator()

No description

getProperty(string $propertyName)

No description

hasProperty(string $propertyName)

No description

Details

__construct(string $className, ClassMetadataBuildingContext $metadataBuildingContext)

Parameters

string $className
ClassMetadataBuildingContext $metadataBuildingContext

getClassName()

setParent(ComponentMetadata $parent)

Parameters

ComponentMetadata $parent

getParent()

getReflectionClass()

setCache(CacheMetadata|null $cache = null)

Parameters

CacheMetadata|null $cache

getCache()

iterable|Property[] getDeclaredPropertiesIterator()

Return Value

iterable|Property[]

addDeclaredProperty(Property $property)

Parameters

Property $property

Exceptions

ReflectionException
MappingException

hasDeclaredProperty(string $propertyName)

Parameters

string $propertyName

iterable|Property[] getPropertiesIterator()

Return Value

iterable|Property[]

getProperty(string $propertyName)

Parameters

string $propertyName

hasProperty(string $propertyName)

Parameters

string $propertyName

ArrayIterator|ColumnMetadata[] getColumnsIterator()

Return Value

ArrayIterator|ColumnMetadata[]