PHP Class GraphAware\Neo4j\OGM\Metadata\RelationshipMetadata

Datei anzeigen Open project: graphaware/neo4j-php-ogm Class Usage Examples

Public Methods

Method Description
__construct ( string $className, ReflectionProperty $reflectionProperty, Relationship $relationshipAnnotation, boolean $isLazy = false, OrderBy $orderBy = null )
addToCollection ( object $object, mixed $value )
addToCollectionAdvanced ( $object, $value, NodeEntityMetadata $valueMetadata )
getDirection ( ) : string
getMappedByProperty ( ) : string
getOrder ( ) : string
getOrderByPropery ( ) : string
getPropertyName ( ) : string
getReflectionProperty ( ) : ReflectionProperty
getRelationshipEntityClass ( ) : string
getTargetEntity ( ) : string
getType ( ) : string
getValue ( $object ) : mixed
hasMappedByProperty ( ) : boolean
hasOrderBy ( ) : boolean
initializeCollection ( $object )
isCollection ( ) : boolean
isLazy ( ) : boolean
isRelationshipEntity ( ) : boolean
setValue ( $object, $value )

Method Details

__construct() public method

public __construct ( string $className, ReflectionProperty $reflectionProperty, Relationship $relationshipAnnotation, boolean $isLazy = false, OrderBy $orderBy = null )
$className string
$reflectionProperty ReflectionProperty
$relationshipAnnotation GraphAware\Neo4j\OGM\Annotations\Relationship
$isLazy boolean
$orderBy GraphAware\Neo4j\OGM\Annotations\OrderBy

addToCollection() public method

public addToCollection ( object $object, mixed $value )
$object object
$value mixed

addToCollectionAdvanced() public method

public addToCollectionAdvanced ( $object, $value, NodeEntityMetadata $valueMetadata )
$valueMetadata NodeEntityMetadata

getDirection() public method

public getDirection ( ) : string
return string

getMappedByProperty() public method

public getMappedByProperty ( ) : string
return string

getOrder() public method

public getOrder ( ) : string
return string

getOrderByPropery() public method

public getOrderByPropery ( ) : string
return string

getPropertyName() public method

public getPropertyName ( ) : string
return string

getReflectionProperty() public method

public getReflectionProperty ( ) : ReflectionProperty
return ReflectionProperty

getRelationshipEntityClass() public method

getTargetEntity() public method

public getTargetEntity ( ) : string
return string

getType() public method

public getType ( ) : string
return string

getValue() public method

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

hasMappedByProperty() public method

public hasMappedByProperty ( ) : boolean
return boolean

hasOrderBy() public method

public hasOrderBy ( ) : boolean
return boolean

initializeCollection() public method

public initializeCollection ( $object )
$object

isCollection() public method

public isCollection ( ) : boolean
return boolean

isLazy() public method

public isLazy ( ) : boolean
return boolean

isRelationshipEntity() public method

public isRelationshipEntity ( ) : boolean
return boolean

setValue() public method

public setValue ( $object, $value )
$object
$value