PHP Class GraphAware\Neo4j\OGM\Metadata\GraphEntityMetadata

Inheritance: implements Doctrine\Common\Persistence\Mapping\ClassMetadata
Exibir arquivo Open project: graphaware/neo4j-php-ogm Class Usage Examples

Protected Properties

Property Type Description
$className string
$entityIdMetadata EntityIdMetadata
$entityPropertiesMetadata EntityPropertyMetadata[]
$reflectionClass ReflectionClass

Public Methods

Method Description
__construct ( EntityIdMetadata $entityIdMetadata, string $className, ReflectionClass $reflectionClass, array $entityPropertiesMetadata ) GraphEntityMetadata constructor.
getClassName ( ) : string
getFieldNames ( )
getIdValue ( $object ) : mixed
getIdentifier ( ) : string
getIdentifierFieldNames ( )
getIdentifierValues ( $object )
getName ( )
getPropertiesMetadata ( ) : EntityPropertyMetadata[]
getPropertyMetadata ( $key ) : EntityPropertyMetadata | null
getPropertyValuesArray ( object $object ) : array
getReflectionClass ( )
getTypeOfField ( $fieldName )
hasField ( $fieldName )
isIdentifier ( $fieldName )
newInstance ( ) : object
setId ( $object, $value )

Method Details

__construct() public method

GraphEntityMetadata constructor.
public __construct ( EntityIdMetadata $entityIdMetadata, string $className, ReflectionClass $reflectionClass, array $entityPropertiesMetadata )
$entityIdMetadata EntityIdMetadata
$className string
$reflectionClass ReflectionClass
$entityPropertiesMetadata array

getClassName() public method

public getClassName ( ) : string
return string

getFieldNames() public method

public getFieldNames ( )

getIdValue() public method

public getIdValue ( $object ) : mixed
$object
return mixed

getIdentifier() public method

public getIdentifier ( ) : string
return string

getIdentifierFieldNames() public method

getIdentifierValues() public method

public getIdentifierValues ( $object )

getName() public method

public getName ( )

getPropertiesMetadata() public method

public getPropertiesMetadata ( ) : EntityPropertyMetadata[]
return EntityPropertyMetadata[]

getPropertyMetadata() public method

public getPropertyMetadata ( $key ) : EntityPropertyMetadata | null
$key
return EntityPropertyMetadata | null

getPropertyValuesArray() public method

public getPropertyValuesArray ( object $object ) : array
$object object
return array

getReflectionClass() public method

public getReflectionClass ( )

getTypeOfField() public method

public getTypeOfField ( $fieldName )

hasField() public method

public hasField ( $fieldName )

isIdentifier() public method

public isIdentifier ( $fieldName )

newInstance() public method

public newInstance ( ) : object
return object

setId() public method

public setId ( $object, $value )
$object
$value

Property Details

$className protected_oe property

protected string $className
return string

$entityIdMetadata protected_oe property

protected EntityIdMetadata,GraphAware\Neo4j\OGM\Metadata $entityIdMetadata
return EntityIdMetadata

$entityPropertiesMetadata protected_oe property

protected EntityPropertyMetadata[],GraphAware\Neo4j\OGM\Metadata $entityPropertiesMetadata
return EntityPropertyMetadata[]

$reflectionClass protected_oe property

protected ReflectionClass $reflectionClass
return ReflectionClass