GraphAware\Reco4PHP\RecommenderService::findInputById PHP Method

findInputById() public method

public findInputById ( $id ) : GraphAware\Bolt\Result\Type\Node | GraphAware\Bolt\Result\Type\Path | GraphAware\Bolt\Result\Type\Relationship | mixed
$id
return GraphAware\Bolt\Result\Type\Node | GraphAware\Bolt\Result\Type\Path | GraphAware\Bolt\Result\Type\Relationship | mixed
    public function findInputById($id)
    {
        $id = (int) $id;
        $result = $this->databaseService->getDriver()->run('MATCH (n) WHERE id(n) = {id} RETURN n as input', ['id' => $id]);
        return $this->validateInput($result);
    }