GraphAware\Neo4j\OGM\Query\ResultMapping::__construct PHP Method

__construct() public method

public __construct ( string $rootEntity, string $rootIdentifier )
$rootEntity string
$rootIdentifier string
    public function __construct($rootEntity, $rootIdentifier)
    {
        if (!class_exists($rootEntity)) {
            throw new \RuntimeException(sprintf('The class "%s" could not be found', $rootEntity));
        }
        $this->rootEntity = $rootEntity;
        $this->rootIdentifier = $rootIdentifier;
    }