ClassSchema

class \TYPO3\CMS\Extbase\Reflection\ClassSchema

A class schema

Table of Contents

Properties

$className  : string
Name of the class this schema is referring to
$properties  : array
Properties of the class which need to be persisted

Methods

__construct()  : mixed
Constructs this class schema
getClassName()  : string
Returns the class name this schema is referring to
getDomainObjectProperties()  : Property[]
Returns all properties that do not start with an underscore like $_localizedUid
getInjectMethods()  : array|Method[]
getInjectProperties()  : array|Property[]
getMethod()  : Method
getMethods()  : array|Method[]
getProperties()  : array|Property[]
getProperty()  : Property
hasConstructor()  : bool
hasInjectMethods()  : bool
hasInjectProperties()  : bool
hasMethod()  : bool
hasProperty()  : bool
If the class schema has a certain property.
isAggregateRoot()  : bool
Whether the class is an aggregate root and therefore accessible through a repository.
isEntity()  : bool
isModel()  : bool
isSingleton()  : bool
isValueObject()  : bool
hasInjectMethodName()  : bool
reflectMethods()  : void
reflectProperties()  : void

Properties

$className

Name of the class this schema is referring to

protected string $className

$properties

Properties of the class which need to be persisted

protected array $properties = []

Methods

getClassName()

Returns the class name this schema is referring to

public getClassName() : string

Return values

string —

The class name

getDomainObjectProperties()

Returns all properties that do not start with an underscore like $_localizedUid

public getDomainObjectProperties() : Property[]

Return values

Property[]

hasConstructor()

public hasConstructor() : bool

Return values

bool

hasInjectMethods()

public hasInjectMethods() : bool

Return values

bool

hasInjectProperties()

public hasInjectProperties() : bool

Return values

bool

hasMethod()

public hasMethod(string $methodName) : bool

Parameters

$methodName : string

Return values

bool

hasProperty()

If the class schema has a certain property.

public hasProperty(string $propertyName) : bool

Parameters

$propertyName : string

Name of the property

Return values

bool

isAggregateRoot()

Whether the class is an aggregate root and therefore accessible through a repository.

public isAggregateRoot() : bool

Return values

bool —

TRUE if it is managed

isEntity()

public isEntity() : bool

Return values

bool

isModel()

public isModel() : bool

Return values

bool

isSingleton()

public isSingleton() : bool

Return values

bool

isValueObject()

public isValueObject() : bool

Return values

bool

hasInjectMethodName()

protected hasInjectMethodName(ReflectionMethod $reflectionMethod) : bool

Parameters

$reflectionMethod : ReflectionMethod

Return values

bool

reflectProperties()

protected reflectProperties(ReflectionClass $reflectionClass) : void

Parameters

$reflectionClass : ReflectionClass

Tags

throws
AnnotationException
throws
NoSuchValidatorException
On this page