PHP Class GraphAware\Neo4j\OGM\Query\ResultMapping

Show file Open project: graphaware/neo4j-php-ogm

Protected Properties

Property Type Description
$mappings array
$rootEntity string
$rootIdentifier string

Public Methods

Method Description
__construct ( string $rootEntity, string $rootIdentifier )
addMapping ( string $identifier, string $class, $property )
build ( string $rootEntity, string $rootIdentifier ) : ResultMapping
getMappings ( ) : array
getRootEntity ( ) : string
getRootIdentifier ( ) : string

Method Details

__construct() public method

public __construct ( string $rootEntity, string $rootIdentifier )
$rootEntity string
$rootIdentifier string

addMapping() public method

public addMapping ( string $identifier, string $class, $property )
$identifier string
$class string

build() public static method

public static build ( string $rootEntity, string $rootIdentifier ) : ResultMapping
$rootEntity string
$rootIdentifier string
return ResultMapping

getMappings() public method

public getMappings ( ) : array
return array

getRootEntity() public method

public getRootEntity ( ) : string
return string

getRootIdentifier() public method

public getRootIdentifier ( ) : string
return string

Property Details

$mappings protected property

protected array $mappings
return array

$rootEntity protected property

protected string $rootEntity
return string

$rootIdentifier protected property

protected string $rootIdentifier
return string