GraphAware\Neo4j\OGM\Metadata\PropertyAnnotationMetadata::hasCustomKey PHP Method

hasCustomKey() public method

public hasCustomKey ( ) : boolean
return boolean
    public function hasCustomKey()
    {
        return null !== $this->key;
    }

Usage Example

 public function testNotHaveCustomKeyByDefault()
 {
     $metadata = new PropertyAnnotationMetadata('string');
     $this->assertFalse($metadata->hasCustomKey());
 }