GraphAware\Neo4j\OGM\Metadata\RelationshipEntityMetadata::__construct PHP Method

__construct() public method

RelationshipEntityMetadata constructor.
public __construct ( string $class, ReflectionClass $reflectionClass, RelationshipEntity $annotation, EntityIdMetadata $entityIdMetadata, string $startNodeClass, $startNodeKey, string $endNodeClass, $endNodeKey, array $entityPropertiesMetadata )
$class string
$reflectionClass ReflectionClass
$annotation GraphAware\Neo4j\OGM\Annotations\RelationshipEntity
$entityIdMetadata EntityIdMetadata
$startNodeClass string
$endNodeClass string
$entityPropertiesMetadata array
    public function __construct($class, \ReflectionClass $reflectionClass, RelationshipEntity $annotation, EntityIdMetadata $entityIdMetadata, $startNodeClass, $startNodeKey, $endNodeClass, $endNodeKey, array $entityPropertiesMetadata)
    {
        parent::__construct($entityIdMetadata, $class, $reflectionClass, $entityPropertiesMetadata);
        $this->relationshipEntityAnnotation = $annotation;
        $this->startNodeEntityMetadata = $startNodeClass;
        $this->endNodeEntityMetadata = $endNodeClass;
        $this->type = $annotation->type;
        $this->startNodeReflectionProperty = $this->reflectionClass->getProperty($startNodeKey);
        $this->endNodeReflectionProperty = $this->reflectionClass->getProperty($endNodeKey);
    }