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

__construct() public method

NodeEntityMetadata constructor.
public __construct ( EntityIdMetadata $className, ReflectionClass $reflectionClass, NodeAnnotationMetadata $nodeAnnotationMetadata, EntityIdMetadata $entityIdMetadata, array $entityPropertiesMetadata, array $simpleRelationshipsMetadata )
$className EntityIdMetadata
$reflectionClass ReflectionClass
$nodeAnnotationMetadata NodeAnnotationMetadata
$entityIdMetadata EntityIdMetadata
$entityPropertiesMetadata array
$simpleRelationshipsMetadata array
    public function __construct($className, \ReflectionClass $reflectionClass, NodeAnnotationMetadata $nodeAnnotationMetadata, EntityIdMetadata $entityIdMetadata, array $entityPropertiesMetadata, array $simpleRelationshipsMetadata)
    {
        parent::__construct($entityIdMetadata, $className, $reflectionClass, $entityPropertiesMetadata);
        $this->nodeAnnotationMetadata = $nodeAnnotationMetadata;
        $this->customRepository = $this->nodeAnnotationMetadata->getCustomRepository();
        foreach ($entityPropertiesMetadata as $o) {
            if ($o instanceof LabeledPropertyMetadata) {
                $this->labeledPropertiesMetadata[$o->getPropertyName()] = $o;
            }
        }
        foreach ($simpleRelationshipsMetadata as $relationshipMetadata) {
            $this->relationships[$relationshipMetadata->getPropertyName()] = $relationshipMetadata;
        }
    }