GraphAware\Neo4j\OGM\Metadata\NodeAnnotationMetadata::getCustomRepository PHP Method

getCustomRepository() public method

public getCustomRepository ( ) : string
return string
    public function getCustomRepository()
    {
        return $this->customRepository;
    }

Usage Example

 /**
  * NodeEntityMetadata constructor.
  *
  * @param \GraphAware\Neo4j\OGM\Metadata\EntityIdMetadata       $className
  * @param \ReflectionClass                                      $reflectionClass
  * @param \GraphAware\Neo4j\OGM\Metadata\NodeAnnotationMetadata $nodeAnnotationMetadata
  * @param \GraphAware\Neo4j\OGM\Metadata\EntityIdMetadata       $entityIdMetadata
  * @param array                                                 $entityPropertiesMetadata
  * @param RelationshipMetadata[]                                $simpleRelationshipsMetadata
  */
 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;
     }
 }